sway mappings

This commit is contained in:
thek4n 2025-11-14 11:12:54 +03:00
parent 1b55d67110
commit d063d2b447
2 changed files with 13 additions and 4 deletions

View File

@ -90,14 +90,19 @@ bindsym --to-code Shift+Ctrl+Print exec --no-startup-id screenshot entire save
bindsym --to-code $mod+q exec swaymsg workspace hide1; workspace hide2 bindsym --to-code $mod+q exec swaymsg workspace hide1; workspace hide2
set $exitmode "Power: [e]xit, [r]eboot, [s]hutdown, s[u]spend, [l]ock, [b]lack" bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
set $exitmode "Power: [e]xit, [r]eboot, [s]hutdown, s[u]spend, [l]ock, [b]lack, [R]UEFI"
mode $exitmode { mode $exitmode {
bindsym --to-code e exit bindsym --to-code e exit
bindsym --to-code r exec reboot bindsym --to-code r exec --no-startup-id reboot
bindsym --to-code s exec shutdown -h now bindsym --to-code s exec --no-startup-id shutdown -h now
bindsym --to-code u exec systemctl suspend; mode "default" bindsym --to-code u exec --no-startup-id systemctl suspend; mode "default"
bindsym --to-code l exec swaylock -f; mode "default" bindsym --to-code l exec swaylock -f; mode "default"
bindsym --to-code b exec magick canvas:none PNG:- | feh --class black -YFx -; mode "default" bindsym --to-code b exec magick canvas:none PNG:- | feh --class black -YFx -; mode "default"
bindsym --to-code Shift+r exec --no-startup-id systemctl reboot --firmware-setup
bindsym Escape mode "default" bindsym Escape mode "default"
bindsym Return mode "default" bindsym Return mode "default"

View File

@ -15,6 +15,10 @@ mouse_warping none
popup_during_fullscreen smart popup_during_fullscreen smart
smart_borders on smart_borders on
default_border pixel 1
default_floating_border normal
hide_edge_borders smart
for_window [tiling] border pixel 3 for_window [tiling] border pixel 3
for_window [title="Picture-in-Picture"] sticky enable for_window [title="Picture-in-Picture"] sticky enable
for_window [title="Picture-in-Picture"] border pixel 0 for_window [title="Picture-in-Picture"] border pixel 0