diff options
| author | 2026-05-13 13:43:23 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:23 +0100 | |
| commit | 659f66eea3ced1219bc8f0165f2254d378dfd7c7 (patch) | |
| tree | 284186146eb1867a8903dd034c90022f9554dc51 | |
| parent | 38cf1936d2b509dc367499b2fa003bd53d338dea (diff) | |
| download | dotfiles-659f66eea3ced1219bc8f0165f2254d378dfd7c7.tar.gz dotfiles-659f66eea3ced1219bc8f0165f2254d378dfd7c7.tar.bz2 dotfiles-659f66eea3ced1219bc8f0165f2254d378dfd7c7.zip | |
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.
| -rw-r--r-- | KEYBINDS.md | 6 | ||||
| -rw-r--r-- | dot_config/sway/config | 9 | ||||
| -rw-r--r-- | meta/base.txt | 1 |
3 files changed, 12 insertions, 4 deletions
diff --git a/KEYBINDS.md b/KEYBINDS.md index a2268a8..95db3a6 100644 --- a/KEYBINDS.md +++ b/KEYBINDS.md @@ -328,14 +328,16 @@ Mod key: `Super` (Mod4). Only personal additions beyond sway defaults listed. | `Super+n` | Dismiss notification | | `Super+Shift+n` | Dismiss all notifications | | `Super+Ctrl+n` | Restore last dismissed notification | -| `Super+Alt+n` | Notification history picker (copy to clipboard) | +| `XF86Favorites` | Notification history picker (copy to clipboard) | | `Super+p` | Clipboard history picker (cliphist + fuzzel) | | `Super+Shift+p` | Clipboard history delete entry | | `Super+Tab` | Next workspace | | `Super+Shift+Tab` | Previous workspace | | `Super+]` | Focus next window in container (monocle cycling) | | `Super+[` | Focus prev window in container (monocle cycling) | -| `F7` | Toggle display mode (laptop-off/side-by-side) | +| `XF86Display` | Toggle display mode (laptop-off/side-by-side) | +| `XF86Tools` | Floating pulsemixer (audio mixer TUI) | +| `XF86Keyboard` | Floating glow pager for `~/dotfiles/KEYBINDS.md` | | `Super+z` then `w` | Display QR for clipboard (wqr) | | `Super+z` then `r` | Scan QR via webcam, copy to clipboard (rqr) | | `Super+t` | Toggle Thunderbird (tiled on current workspace) | 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" { diff --git a/meta/base.txt b/meta/base.txt index f3c3e5a..1c6a81b 100644 --- a/meta/base.txt +++ b/meta/base.txt @@ -17,6 +17,7 @@ fwupd fzf gdu git +glow htop iwd jq |
