Change the way qtile handles colors in statusbar.
This commit is contained in:
parent
1b6c5cca0b
commit
3e706f9ca6
4 changed files with 20 additions and 13 deletions
|
@ -1,8 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "<span foreground='#000000' background='#ff3333'>no wifi</span>" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span foreground='#000000' background='#ff3333'>no ip</span>"
|
||||
# && printf "$icon $(iwgetid -r)" \
|
||||
down) printf "no wifi" ;;
|
||||
up) [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "no ip" ;;
|
||||
esac
|
||||
|
|
|
@ -9,7 +9,7 @@ if [ $1 ]; then
|
|||
dunstify -u low -h int:value:$volume -r 20 -t 800 "volume: $volume"
|
||||
else
|
||||
mic=$(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F' / ' '{print $2}' | tr -d '%')
|
||||
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micmute="<span foreground='#ffffff' background='#770000'> \uf131 </span> " || micmute=""
|
||||
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micmute="\uf131" || micmute=""
|
||||
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 "${micmute} <span foreground='#ffffff' background='#770000'> \ufc5d </span>" || printf "$micmute"
|
||||
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "${micmute} \ufc5d" || printf "$micmute"
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $(cat $XDG_CACHE_HOME/yubikey.status) in
|
||||
*_1) printf " <span foreground='#000000' background='#e7c547'>touch the yubikey</span>" ;;
|
||||
*_1) printf "touch the yubikey" ;;
|
||||
*) printf "" ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue