mako: Configure do-not-disturb mode
This commit is contained in:
parent
3c4345cea0
commit
c137d50d60
4 changed files with 25 additions and 3 deletions
14
bin/_do-not-disturb
Executable file
14
bin/_do-not-disturb
Executable file
|
|
@ -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
|
||||
|
|
@ -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/
|
||||
|
|
|
|||
6
mako/config
Normal file
6
mako/config
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
group-by=app-name,summary,urgency
|
||||
max-history=10
|
||||
default-timeout=500
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
|
@ -180,6 +180,7 @@ 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+Ctrl+Shift+Backspace exec _do-not-disturb
|
||||
|
||||
assign [class="Beeper"] workspace number 9
|
||||
assign [class="discord"] workspace number 9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue