Files
sway-rising/.config/sway/config.d/30-workflow.conf
T

38 lines
1.6 KiB
Plaintext

# Workflow helpers
# Drop-down scratchpad terminal: $mod+grave
exec kitty --class scratch
for_window [app_id="scratch"] move scratchpad, resize set 1000 560, move position center, border pixel 2
bindsym --to-code $mod+grave scratchpad show
# Workspace navigation
bindsym --to-code $mod+Tab workspace next_on_output
bindsym --to-code $mod+Shift+Tab workspace prev_on_output
bindsym --to-code $mod+Ctrl+Right workspace next_on_output
bindsym --to-code $mod+Ctrl+Left workspace prev_on_output
# Quick layout / window helpers
bindsym --to-code $mod+Shift+f floating toggle, resize set 1000 600, move position center
bindsym --to-code $mod+c exec swaymsg [con_id=__focused__] move position center
# Screenshots: area -> clipboard, area -> file
bindsym --to-code Shift+Print exec ~/.config/sway/screenshot.sh clip
bindsym --to-code $mod+Print exec ~/.config/sway/screenshot.sh file
# Keep video/browser-video windows undimmed
for_window [app_id="firefox"] inhibit_idle fullscreen
for_window [app_id="mpv"] floating enable, dim_inactive 0
# Mirror internal screen to HDMI/TV on hotplug
exec_always ~/.config/sway/mirror.sh
# Rice helpers
bindsym --to-code $mod+Shift+w exec ~/.config/sway/wallpaper.sh
bindsym --to-code $mod+Shift+s exec ~/.config/sway/screenshot-menu.sh
bindsym --to-code $mod+F1 exec ~/.config/sway/cheatsheet.sh
# Performance mode: toggle blur + shadows
bindsym --to-code $mod+Shift+b blur toggle; shadows toggle
# Control center (notifications + quick settings)
bindsym --to-code $mod+n exec dms ipc call control-center toggle
bindsym --to-code $mod+Shift+n exec dms ipc call notifications toggle