nix/home/config/sway/module/ScratchPad.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-23 04:55:57 +03:00
{ ... }: {
2024-04-06 03:03:58 +03:00
text = ''
# Sway has a "scratchpad", which is a bag of holding for windows.
# 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
2024-06-23 04:55:57 +03:00
bindsym $mod+shift+C move scratchpad
2024-04-06 03:03:58 +03:00
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
2024-06-23 04:55:57 +03:00
bindsym $mod+c scratchpad show
2024-04-06 03:03:58 +03:00
# Fix for a goddamn Firefox WebRTC indicator.
for_window [app_id="firefox" title="Firefox Sharing Indicator"] {
kill
}
# NetworkManager.
for_window [app_id="nm-connection-editor"] {
move scratchpad
scratchpad show
}
# Bluetooth.
for_window [app_id=".blueman-manager-wrapped"] {
move scratchpad
scratchpad show
}
# Sound.
for_window [app_id="pavucontrol"] {
2024-04-06 03:03:58 +03:00
move scratchpad
scratchpad show
}
# Android emulator controls.
for_window [title="Emulator" window_type="utility"] {
move scratchpad
}
2024-04-16 23:23:37 +03:00
# Calculator.
for_window [app_id="org.gnome.Calculator"] {
move scratchpad
scratchpad show
}
2024-04-06 03:03:58 +03:00
'';
}