more sway and some waybar

This commit is contained in:
Mark Riedesel 2024-06-12 13:05:12 -05:00
parent 2ac99db38b
commit 93879b3ef7
21 changed files with 760 additions and 26 deletions

13
.config/sway/scripts/dnd.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
case $1'' in
'status')
printf '{\"alt\":\"%s\",\"tooltip\":\"mode: %s\"}' $(makoctl mode | grep -q 'do-not-disturb' && echo dnd || echo default) $(makoctl mode | tail -1)
;;
'restore')
makoctl restore
;;
'toggle')
makoctl mode | grep 'do-not-disturb' && makoctl mode -r do-not-disturb || makoctl mode -a do-not-disturb
;;
esac