Migration to ayu.

This commit is contained in:
Bartek Stalewski 2022-10-30 13:53:34 +01:00
parent b6e7de0e5d
commit 62c4507e7e
8 changed files with 68 additions and 42 deletions

View file

@ -13,5 +13,5 @@ for battery in /sys/class/power_supply/BAT?*; do
esac
capacity=$(cat "$battery/capacity")
# Will make a warn variable if discharging and low
[ "$capacity" -le 20 ] && printf "<span foreground='#ffffff' background='#770000'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
[ "$capacity" -le 20 ] && printf "<span foreground='#000000' background='#ff3333'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
done && exit 0

View file

@ -1,8 +1,8 @@
#!/bin/bash
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf "<span background='#770000'>no wifi</span>" ;;
down) printf "<span foreground='#000000' background='#ff3333'>no wifi</span>" ;;
up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span background='#770000'>no ip</span>"
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span foreground='#000000' background='#ff3333'>no ip</span>"
# && printf "$icon $(iwgetid -r)" \
esac

View file

@ -1,6 +1,6 @@
#!/bin/sh
case $(cat $XDG_CACHE_HOME/yubikey.status) in
*_1) printf " <span foreground='#000000' background='#e8b923'>touch the yubikey</span>" ;;
*_1) printf " <span foreground='#000000' background='#e7c547'>touch the yubikey</span>" ;;
*) printf "" ;;
esac