feat: differentiate between laptop and desktop

This commit is contained in:
Fabio Lenherr 2023-01-03 09:20:42 +01:00
parent 3a59d32f55
commit 5bb44594bb
50 changed files with 3432 additions and 1 deletions

26
eww_laptop/scripts/wifi Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
status=$(nmcli g | grep -oE "disconnected")
essid=$(nmcli c | grep wlp2s0 | awk '{print ($1)}')
if [ $status ] ; then
icon=""
text=""
col="#575268"
else
icon=""
text="${essid}"
col="#a1bdce"
fi
if [[ "$1" == "--COL" ]]; then
echo $col
elif [[ "$1" == "--ESSID" ]]; then
echo $text
elif [[ "$1" == "--ICON" ]]; then
echo $icon
fi