dwm and dwmbar
This commit is contained in:
1 parent
307448edd3
commit
135fe92331
50 files changed
+1846
No files matched your search
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Prints out if there is an ethernet cable connected
|
||||
|
||||
ETHERNET_ICON=''
|
||||
|
||||
get_ethernet()
|
||||
{
|
||||
if [ -d /sys/class/net/eth? ]; then
|
||||
if [ "$(cat /sys/class/net/eth?/carrier)" == "1" ]; then
|
||||
echo "$ETHERNET_ICON"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
get_ethernet
|
||||
Reference in new issue
Block a user