Sway : Add a hack for system controls that switches to En layout on press.

This commit is contained in:
Dmitry Voronin 2024-07-30 19:02:21 +03:00
parent 950d4be9e5
commit 40b5fb69e4
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -2,6 +2,7 @@
mod = config.setting.sysctrl; mod = config.setting.sysctrl;
in { in {
text = '' text = ''
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}+g exec 'swayscript gamingtoggle'
bindsym --to-code ${mod}+l exec 'powerlimit toggle' bindsym --to-code ${mod}+l exec 'powerlimit toggle'