diff --git a/bin/_do-not-disturb b/bin/_do-not-disturb new file mode 100755 index 0000000..0e7d1ce --- /dev/null +++ b/bin/_do-not-disturb @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -euo pipefail + +modes="$(makoctl mode)" + +if [[ "$modes" =~ 'do-not-disturb' ]]; then + makoctl mode -r do-not-disturb + notify-send -t 1000 "Notifications on" +else + notify-send -t 500 "Notifications off" + sleep 1 # Give it a chance to be seen! + makoctl mode -a do-not-disturb +fi diff --git a/desktop.conf.yaml b/desktop.conf.yaml index 99a0ec9..7140fd9 100644 --- a/desktop.conf.yaml +++ b/desktop.conf.yaml @@ -3,6 +3,7 @@ ~/.Xresources: X/.Xresources ~/.config/dunst: dunst/ ~/.config/i3: i3/ + ~/.config/mako: mako/ ~/.config/polybar: polybar/ ~/.config/qutebrowser: qutebrowser/ ~/.config/sway: sway/ diff --git a/mako/config b/mako/config new file mode 100644 index 0000000..b970cd2 --- /dev/null +++ b/mako/config @@ -0,0 +1,6 @@ +group-by=app-name,summary,urgency +max-history=10 +default-timeout=500 + +[mode=do-not-disturb] +invisible=1 diff --git a/sway/config b/sway/config index 0ae42ce..e8013b2 100644 --- a/sway/config +++ b/sway/config @@ -177,9 +177,10 @@ seat seat0 hide_cursor 5000 bindsym $super+x exec cb-clear -bindsym $super+Backspace exec makoctl dismiss -bindsym $super+Ctrl+Backspace exec makoctl dismiss --all -bindsym $super+Shift+Backspace exec makoctl restore +bindsym $super+Backspace exec makoctl dismiss +bindsym $super+Ctrl+Backspace exec makoctl dismiss --all +bindsym $super+Shift+Backspace exec makoctl restore +bindsym $super+Ctrl+Shift+Backspace exec _do-not-disturb assign [class="Beeper"] workspace number 9 assign [class="discord"] workspace number 9