Switch to qtile.
This commit is contained in:
parent
afdf3d4bcd
commit
e06cbc44a9
34 changed files with 34 additions and 40 deletions
4
_desktop/_scripts/sb-emerge
Executable file
4
_desktop/_scripts/sb-emerge
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
icon='\ue20f '
|
||||
[ $(pgrep -x emerge) ] && printf "$icon <span foreground='#ffffff'background='#9a37ff'>emerge</span>" || printf ""
|
10
_desktop/_scripts/sb-network
Executable file
10
_desktop/_scripts/sb-network
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
icon='\uf1eb '
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "$icon <span background='#770000'>no wifi</span>" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||
&& printf "$icon $(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \
|
||||
|| printf "$icon <span background='#770000'>no ip</span>"
|
||||
esac
|
5
_desktop/_scripts/sb-volume
Executable file
5
_desktop/_scripts/sb-volume
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
icon='\uf028 '
|
||||
vol=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F' / ' '{print $2}' | tr -d '%')
|
||||
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "$icon <span foreground='#ffffff' background='#770000'>mute</span>" || printf "$icon ${vol}%%"
|
Loading…
Add table
Add a link
Reference in a new issue