Sway: Add scratchpad kill key.

This commit is contained in:
Dmitry Voronin 2024-11-23 11:09:47 +03:00
parent c1ba5b75c9
commit 85f140481c
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -4,12 +4,11 @@
# You can send windows there and get them back later. # You can send windows there and get them back later.
# NOTE: Get id with `swaymsg -t get_tree`. # 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. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # 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. # Fix for a goddamn Firefox WebRTC indicator.
for_window [app_id="firefox" title="Firefox Sharing Indicator"] { for_window [app_id="firefox" title="Firefox Sharing Indicator"] {