From 85f140481cde1d5b4319cae04496e4bf2c90b188 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 23 Nov 2024 11:09:47 +0300 Subject: [PATCH] Sway: Add scratchpad kill key. --- home/file/sway/module/ScratchPad.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/home/file/sway/module/ScratchPad.nix b/home/file/sway/module/ScratchPad.nix index a7632615..2d6f8a91 100644 --- a/home/file/sway/module/ScratchPad.nix +++ b/home/file/sway/module/ScratchPad.nix @@ -4,12 +4,11 @@ # You can send windows there and get them back later. # NOTE: Get id with `swaymsg -t get_tree`. - # Move the currently focused window to the scratchpad - bindsym $mod+shift+C move scratchpad - # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. - bindsym $mod+c scratchpad show + bindsym --to-code $mod+c scratchpad show + bindsym --to-code $mod+shift+C move scratchpad + bindsym --to-code $mod+shift+X exec swayscript scratchpad_kill # Fix for a goddamn Firefox WebRTC indicator. for_window [app_id="firefox" title="Firefox — Sharing Indicator"] {