Switching from dunst to qtile's notifications in the status bar.

This commit is contained in:
Bartek Stalewski 2022-10-18 17:13:21 +02:00
parent 0f49c1f23b
commit b45a8b3c70
5 changed files with 17 additions and 6 deletions

View file

@ -40,8 +40,6 @@ onescreen() {
postrun() {
feh --no-fehbg --bg-scale ~/.local/share/wallpaper.jpg
{ killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
#kill -46 $(pidof dwmblocks)
}
# Get all possible displays
@ -52,7 +50,7 @@ screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
# If there's only one screen
[ "$(echo "$screens" | wc -l)" -lt 2 ] &&
{ onescreen "$screens" "native"; postrun; dunstify -u critical "💻 no device to switch"; exit ;}
{ onescreen "$screens" "native"; postrun; notify-send -t 1000 ' 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") &&