aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:42 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:42 +0100
commit26ceab690dff09d5162443b14adccfbe0e9bcd5d (patch)
treeacfd10c910e1a73c47d4be118348163705dae57d /dot_config/sway
parentae464450eb68fb154181823d059cf7124258ad2c (diff)
downloaddotfiles-26ceab690dff09d5162443b14adccfbe0e9bcd5d.tar.gz
dotfiles-26ceab690dff09d5162443b14adccfbe0e9bcd5d.tar.bz2
dotfiles-26ceab690dff09d5162443b14adccfbe0e9bcd5d.zip
refactor(notifications): drop dismissed-state machinery; pending = visible
Set mako default-timeout=0 so notifications stay until acted upon. With auto-timeout off, mako's list IS the pending set, so the $XDG_RUNTIME_DIR/mako-dismissed bridge becomes dead weight. - mako/config: default-timeout=0; drop redundant [urgency=critical] default-timeout=0 override. - Delete dismiss-visible.sh and restore-pending.sh; sway calls makoctl directly (Mod+n=dismiss, Mod+Shift+n=dismiss --all, Mod+Ctrl+n=restore as undo). - Shrink mako-status.sh to a 20-line counter of makoctl list. - Rename mako-history.py -> notification-picker.py; lists only visible, dismisses via makoctl dismiss -n <id>. - Update waybar config.jsonc on-click path. - Update KEYBINDS.md wording (no more 'marks seen' / 'pending set').
Diffstat (limited to 'dot_config/sway')
-rw-r--r--dot_config/sway/config12
1 files changed, 6 insertions, 6 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config
index efd7561..18b402c 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -186,9 +186,9 @@ bindsym $mod+Shift+o exec ~/.local/bin/ocr
bindsym $mod+Shift+s exec "playerctl -a pause; swaylock -f -e -c 000000"
# Notifications
-bindsym $mod+n exec ~/.config/waybar/dismiss-visible.sh top
-bindsym $mod+Shift+n exec ~/.config/waybar/dismiss-visible.sh all
-bindsym $mod+Ctrl+n exec ~/.config/waybar/restore-pending.sh
+bindsym $mod+n exec makoctl dismiss
+bindsym $mod+Shift+n exec makoctl dismiss --all
+bindsym $mod+Ctrl+n exec makoctl restore
# Clipboard history
bindsym $mod+p exec ~/.config/waybar/clip-picker.sh pick
@@ -203,7 +203,7 @@ bindsym --no-repeat XF86Display exec ~/.config/sway/display-toggle.sh
# Multimedia hardware keys (uncommon)
bindsym XF86Tools exec $term --class=floating -e pulsemixer
bindsym XF86Keyboard exec $term --class=floating -e glow -p ~/dotfiles/KEYBINDS.md
-bindsym XF86Favorites exec ~/.config/waybar/mako-history.py
+bindsym XF86Favorites exec ~/.config/waybar/notification-picker.py
# Quick scratch tools
bindsym $mod+Shift+t exec $term --class=floating -e sh -c 'nvim "$XDG_RUNTIME_DIR/scratch-$(date +%s).txt"'
@@ -221,7 +221,7 @@ bindsym $mod+z mode "qr"
# System / hardware submode — non-XF86 alternatives for the rarely used
# hardware toggles and TUI launchers above. Enter with Super+x; mnemonic
# letters (b=bluetooth, w=wifi, r=rfkill, s=sleep, d=display,
-# v=volume-mixer, k=keybinds, m=mako-history).
+# v=volume-mixer, k=keybinds, m=notification-picker).
mode "system" {
bindsym b exec ~/.config/sway/bt-toggle.sh, mode "default"
bindsym w exec ~/.config/waybar/wifi-toggle.sh, mode "default"
@@ -230,7 +230,7 @@ mode "system" {
bindsym d exec ~/.config/sway/display-toggle.sh, mode "default"
bindsym v exec $term --class=floating -e pulsemixer, mode "default"
bindsym k exec $term --class=floating -e glow -p ~/dotfiles/KEYBINDS.md, mode "default"
- bindsym m exec ~/.config/waybar/mako-history.py, mode "default"
+ bindsym m exec ~/.config/waybar/notification-picker.py, mode "default"
bindsym n exec makoctl mode -t do-not-disturb, mode "default"
bindsym Escape mode "default"
bindsym Return mode "default"