Sway : Move gaming & montoggle to sway mod.

This commit is contained in:
Dmitry Voronin 2024-09-11 18:40:30 +03:00
parent 0a3c52cf2a
commit 64537ac3e2
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 4 additions and 2 deletions

View file

@ -8,5 +8,9 @@
output * scale 1 output * scale 1
output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080 output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080
output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0 output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0
# Display toggles.
bindsym --to-code $mod+m exec 'swayscript montoggle'
bindsym --to-code $mod+g exec 'swayscript gamingtoggle'
''; '';
} }

View file

@ -4,9 +4,7 @@ in {
text = '' text = ''
bindsym ${mod} input * xkb_switch_layout 0 bindsym ${mod} input * xkb_switch_layout 0
bindsym --to-code ${mod}+c exec 'systemctl reboot -i' bindsym --to-code ${mod}+c exec 'systemctl reboot -i'
bindsym --to-code ${mod}+g exec 'swayscript gamingtoggle'
bindsym --to-code ${mod}+l exec 'powerlimit toggle' bindsym --to-code ${mod}+l exec 'powerlimit toggle'
bindsym --to-code ${mod}+m exec 'swayscript montoggle'
bindsym --to-code ${mod}+p exec 'powersave toggle' bindsym --to-code ${mod}+p exec 'powersave toggle'
bindsym --to-code ${mod}+r exec 'swayscript reload' bindsym --to-code ${mod}+r exec 'swayscript reload'
bindsym --to-code ${mod}+v exec 'swayscript vpntoggle' bindsym --to-code ${mod}+v exec 'swayscript vpntoggle'