diff --git a/_desktop/_scripts/dmenu-audio b/_desktop/_scripts/dmenu-audio index bdbcf75..b28fe51 100755 --- a/_desktop/_scripts/dmenu-audio +++ b/_desktop/_scripts/dmenu-audio @@ -47,7 +47,7 @@ show_current() { chosen=$(printf "Output: $def_snk\\nInput: $def_src" | dmenu -c -l 2) if [ "$1" = "no_switch" ]; then case "$chosen" in - *) notify-send -u critical "婢 no device to switch" ;; + *) notify-send -t 2000 -u critical "婢 no device to switch" ;; esac else case "$chosen" in diff --git a/_desktop/_scripts/dmenu-display b/_desktop/_scripts/dmenu-display index a86af71..59c01ad 100755 --- a/_desktop/_scripts/dmenu-display +++ b/_desktop/_scripts/dmenu-display @@ -51,7 +51,7 @@ screens=$(echo "$allposs" | awk '/ connected/ {print $1}') # If there's only one screen [ "$(echo "$screens" | wc -l)" -lt 2 ] && - { onescreen "$screens" "native"; postrun; notify-send -u critical ' no device to switch'; exit ;} + { onescreen "$screens" "native"; postrun; notify-send -t 2000 -u critical ' no device to switch'; exit ;} # Get user choice including both and manual selection: chosen=$(printf -- "%s\\nmulti" "$screens" | dmenu -c -l 5 -i -p "select output") && diff --git a/_desktop/_scripts/dmenu-emoji b/_desktop/_scripts/dmenu-emoji index 1c2823b..1a96344 100755 --- a/_desktop/_scripts/dmenu-emoji +++ b/_desktop/_scripts/dmenu-emoji @@ -7,5 +7,5 @@ if [ -n "$1" ]; then xdotool type "$chosen" else printf "$chosen" | xclip -rmlastnl - notify-send "'$chosen' copied to clipboard" & + notify-send -t 2000 "'$chosen' copied to clipboard" & fi diff --git a/_desktop/_scripts/sb-volume b/_desktop/_scripts/sb-volume index eee8d6e..0896bb9 100755 --- a/_desktop/_scripts/sb-volume +++ b/_desktop/_scripts/sb-volume @@ -6,7 +6,7 @@ if [ $1 ]; then dec) pactl set-sink-volume @DEFAULT_SINK@ -5%;; esac volume=$(pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk -F' / *' '{print $2}') - notify-send -u low "volume: $volume" + notify-send -t 2000 -u low "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="" diff --git a/_desktop/_scripts/sb-yubikey b/_desktop/_scripts/sb-yubikey deleted file mode 100755 index 8eb7f82..0000000 --- a/_desktop/_scripts/sb-yubikey +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -case $(cat $XDG_CACHE_HOME/yubikey.status) in - *_1) printf "touch the yubikey" ;; - *) printf "" ;; -esac diff --git a/_desktop/_scripts/yubikey-detector-helper b/_desktop/_scripts/yubikey-detector-helper deleted file mode 100755 index 9b1a50f..0000000 --- a/_desktop/_scripts/yubikey-detector-helper +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -yubikey-touch-detector --stdout 2>/dev/null| while read cmd; do echo $cmd > $XDG_CACHE_HOME/yubikey.status; done diff --git a/_desktop/qtile/config.py b/_desktop/qtile/config.py index b202a83..5a6e8e4 100644 --- a/_desktop/qtile/config.py +++ b/_desktop/qtile/config.py @@ -127,16 +127,10 @@ screens = [ record_history=False, ), widget.Spacer(), - widget.GenPollCommand( + widget.Notify( background='#e8b923', foreground='#000000', font='RobotoMono Nerd Font Bold', - update_interval=0.5, - cmd="sb-yubikey", - ), - widget.Spacer(), - widget.Notify( - default_timeout=2, ), widget.GenPollCommand( background='#005577', diff --git a/_desktop/dunst/dunstrc b/_unused/dunst/dunstrc similarity index 100% rename from _desktop/dunst/dunstrc rename to _unused/dunst/dunstrc