Changed install documentation to include dwm links

This commit is contained in:
2022-09-20 20:54:10 +01:00
parent 0222d48734
commit b89c5f1a76
13 changed files with 135 additions and 4 deletions

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"