dwm and dwmbar

This commit is contained in:
wt committed 2024-07-01 17:46:12 +07:00
1 parent 307448edd3
commit 135fe92331
50 files changed
+1846

No files matched your search

+16
View File
@@ -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