aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway/config
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:20 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:20 +0100
commit80bef028c9f0dc9d4e0e9008fed6ce9299ea2a47 (patch)
tree0b70451fa7b00d08becd1fb929307ff1b3ca16e6 /dot_config/sway/config
parent7744194103144f1de3aaaf0d28dd4063722249c4 (diff)
downloaddotfiles-80bef028c9f0dc9d4e0e9008fed6ce9299ea2a47.tar.gz
dotfiles-80bef028c9f0dc9d4e0e9008fed6ce9299ea2a47.tar.bz2
dotfiles-80bef028c9f0dc9d4e0e9008fed6ce9299ea2a47.zip
fix(sway): extract id from fuzzel line for makoctl menu
makoctl menu <cmd> expects the command to emit just the notification id, but fuzzel --dmenu echoes the full '<id> <summary>' line. Pipe through cut -d' ' -f1 so mako can act on the selection.
Diffstat (limited to 'dot_config/sway/config')
-rw-r--r--dot_config/sway/config2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config
index c9aaf91..7f6c5f7 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -158,7 +158,7 @@ bindsym $mod+Shift+s exec "playerctl -a pause; swaylock -f -e -c 282828"
bindsym $mod+n exec makoctl dismiss
bindsym $mod+Shift+n exec makoctl dismiss --all
bindsym $mod+Ctrl+n exec makoctl restore
-bindsym $mod+Mod1+n exec makoctl menu fuzzel --dmenu --prompt 'Notifications: '
+bindsym $mod+Mod1+n exec makoctl menu sh -c 'fuzzel --dmenu --prompt "Notifications: " | cut -d" " -f1'
# Clipboard history
bindsym $mod+p exec sh -c 'cliphist list | fuzzel --dmenu | cliphist decode | wl-copy'