Added Statusbad Commands (Not in correct location)
This commit is contained in:
14
statusbar/dwm_network
Executable file
14
statusbar/dwm_network
Executable 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"
|
Reference in New Issue
Block a user