diff --git a/_desktop/_scripts/sb-network b/_desktop/_scripts/sb-network
index 2cc7895..1cdd0b3 100755
--- a/_desktop/_scripts/sb-network
+++ b/_desktop/_scripts/sb-network
@@ -1,8 +1,6 @@
#!/bin/bash
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
- down) printf "no wifi" ;;
- up)
- [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "no ip"
-# && printf "$icon $(iwgetid -r)" \
+ down) printf "no wifi" ;;
+ up) [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "no ip" ;;
esac
diff --git a/_desktop/_scripts/sb-volume b/_desktop/_scripts/sb-volume
index ada236d..095b873 100755
--- a/_desktop/_scripts/sb-volume
+++ b/_desktop/_scripts/sb-volume
@@ -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=" \uf131 " || 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} \ufc5d " || printf "$micmute"
+ [ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "${micmute} \ufc5d" || printf "$micmute"
fi
diff --git a/_desktop/_scripts/sb-yubikey b/_desktop/_scripts/sb-yubikey
index 8e39057..8eb7f82 100755
--- a/_desktop/_scripts/sb-yubikey
+++ b/_desktop/_scripts/sb-yubikey
@@ -1,6 +1,6 @@
#!/bin/sh
case $(cat $XDG_CACHE_HOME/yubikey.status) in
- *_1) printf " touch the yubikey" ;;
+ *_1) printf "touch the yubikey" ;;
*) printf "" ;;
esac
diff --git a/_desktop/qtile/config.py b/_desktop/qtile/config.py
index c7cc34e..454ecc3 100644
--- a/_desktop/qtile/config.py
+++ b/_desktop/qtile/config.py
@@ -103,9 +103,9 @@ layouts = [
]
widget_defaults = dict(
- foreground='#e6e1cf',
background='#0f1419',
- font="RobotoMono Nerd Font",
+ foreground='#e6e1cf',
+ font="RobotoMono Nerd Font Medium",
fontsize=14,
)
extension_defaults = widget_defaults.copy()
@@ -122,24 +122,33 @@ screens = [
urgent_alert_method='block',
urgent_border='#ff3333',
),
- widget.GenPollText(
- update_interval=0.5,
- func=lambda: subprocess.check_output("sb-yubikey").decode(),
- ),
widget.Prompt(
prompt='open: ',
record_history=False,
),
widget.Spacer(),
widget.GenPollText(
+ background='#e8b923',
+ foreground='#000000',
+ font='RobotoMono Nerd Font Bold',
+ update_interval=0.5,
+ func=lambda: subprocess.check_output("sb-yubikey").decode(),
+ ),
+ widget.GenPollText(
+ background='#36a3d9',
+ foreground='#000000',
update_interval=1,
func=lambda: subprocess.check_output("sb-mail").decode(),
),
widget.GenPollText(
+ background='#ff3333',
+ foreground='#000000',
update_interval=1,
func=lambda: subprocess.check_output("sb-network").decode(),
),
widget.GenPollText(
+ background='#ff3333',
+ foreground='#000000',
update_interval=1,
func=lambda: subprocess.check_output("sb-volume").decode(),
),