Upload scripts

This commit is contained in:
Samuel Webb 2025-01-07 17:57:17 -05:00
parent 6e5095f3cf
commit a54da6dbbe
15 changed files with 70 additions and 37 deletions

View file

@ -4,14 +4,11 @@ case $BLOCK_BUTTON in
1) /home/swebb/Scripts/dwm/wlanMenu.sh;;
esac
conn=$(nmcli device show | sed -n 1p | sed -E 's/.*:\s*//')
conn=$(nmcli device show | grep " wlp2s0" -A 4 | sed -nE 's/.*\(//p')
icon="󰖪"
case $conn in
wlp2s0)
icon="";;
enp1s0)
icon="";;
esac
if [ $conn == "connected)" ]; then
icon="󰖩"
fi
echo "^c#FF5C8F^ ${icon} $(nmcli device show | sed -n 6p | sed -E 's/.*:\s*//')"
echo "^c#FF5C8F^ ${icon} $(nmcli device show | grep " wlp2s0" -A 5 | sed -nE 's/GENERAL.CONNECTION:(\s)*//p')"