Cleanup of polybar scripts
This commit is contained in:
parent
b56cdb7b45
commit
1e08620e00
|
@ -4,7 +4,7 @@ color8="#88C0D0"
|
||||||
|
|
||||||
icon(){
|
icon(){
|
||||||
printf "%s\\n" "%{F${color8}}${1}%{F}"
|
printf "%s\\n" "%{F${color8}}${1}%{F}"
|
||||||
}
|
}
|
||||||
|
|
||||||
icon2() {
|
icon2() {
|
||||||
printf "%s\\n" "%{F${color11:-#F0F0F0}}${1}%{F}"
|
printf "%s\\n" "%{F${color11:-#F0F0F0}}${1}%{F}"
|
||||||
|
|
|
@ -5,7 +5,7 @@ icon(){
|
||||||
printf "%s\\n" "%{F${color8}}${1}%{F}"
|
printf "%s\\n" "%{F${color8}}${1}%{F}"
|
||||||
}
|
}
|
||||||
|
|
||||||
wifi="$(echo -e $(wpa_cli status | grep ssid | awk 'NR==2{print $1}' | cut -c 6-))"
|
wifi="$(echo -e "$(wpa_cli status | grep ssid | awk 'NR==2{print $1}' | cut -c 6-)")"
|
||||||
wifi_icon=""
|
wifi_icon=""
|
||||||
|
|
||||||
printf "%s\\n" "$(icon "$wifi_icon") ${wifi}"
|
printf "%s\\n" "$(icon "$wifi_icon") ${wifi}"
|
||||||
|
|
Loading…
Reference in New Issue