17 lines
676 B
Plaintext
17 lines
676 B
Plaintext
# sway # scratchpad
|
|
|
|
# Sway has a "scratchpad", which is a bag of holding for windows.
|
|
# You can send windows there and get them back later.
|
|
|
|
# launch a terminal and move it to scratch at launch
|
|
exec --no-startup-id "sleep 10 && $term -t scratch -a scratch -W 130x25"
|
|
for_window [app_id="scratch"] floating enable, move absolute position center
|
|
for_window [app_id="scratch"] move scratchpad
|
|
|
|
# Move the currently focused window to the scratchpad
|
|
bindsym $mad+Shift+Return 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 $mad+Return scratchpad show
|