Added Statusbad Commands (Not in correct location)

This commit is contained in:
2022-09-21 20:51:46 +01:00
parent 8afd56ea27
commit 990568295b
12 changed files with 125 additions and 0 deletions

14
statusbar/dwm_network Executable file
View File

@ -0,0 +1,14 @@
#! /bin/bash
if [[ $(tail -n+3 /proc/net/wireless 2>/dev/null) ]]; then
ssid=$(nmcli -t -f name connection show --active | head -n 1)
wireless_icon=" ^c#f7ca88^$ssid^d^"
elif [[ $(grep "" /sys/class/net/eth0/* 2>/dev/null) ]]; then
wired_icon=" ^c#f7ca88^LAN^d^"
fi
if [[ $(nmcli con show --active | grep -i vpn 2>/dev/null) ]]; then
vpn_icon="旅 "
fi
printf "$vpn_icon$wired_icon$wireless_icon"