From 659f66eea3ced1219bc8f0165f2254d378dfd7c7 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:23 +0100 Subject: feat(sway): wire XF86 media keys (Display/Tools/Keyboard/Favorites) - XF86Display replaces F7 for display-toggle.sh (dedicated HW key) - XF86Tools opens floating pulsemixer (audio mixer TUI) - XF86Keyboard opens KEYBINDS.md in glow (floating pager) - XF86Favorites takes over mako history picker (from Super+Alt+n) Adds generic [app_id="floating"] window rule so ghostty --class=floating windows open floating. Adds glow to meta/base.txt. --- dot_config/sway/config | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'dot_config/sway') diff --git a/dot_config/sway/config b/dot_config/sway/config index 17c5d22..c519958 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -43,6 +43,7 @@ output * bg #282828 solid_color # ── Window rules ────────────────────────────────────────────────────────────── for_window [class="feh"] floating enable for_window [app_id="imv"] floating enable +for_window [app_id="floating"] floating enable for_window [class="Tor Browser"] floating enable for_window [app_id="org.mozilla.Thunderbird" title=".*Mozilla Thunderbird$"] mark --add tb-main for_window [shell=".*"] inhibit_idle fullscreen @@ -162,14 +163,18 @@ 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 ~/.config/waybar/mako-history.sh # Clipboard history bindsym $mod+p exec sh -c 'cliphist list | fuzzel --dmenu | cliphist decode | wl-copy' bindsym $mod+Shift+p exec sh -c 'cliphist list | fuzzel --dmenu | cliphist delete' # Display mode switching -bindsym --no-repeat F7 exec ~/.config/sway/display-toggle.sh +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.sh # QR codes (Super+z then r=read or w=write) mode "qr" { -- cgit v1.3.1