#+end_src
** sway
+
+*** main
:PROPERTIES:
:header-args+: :tangle ~/.config/sway/config
:END:
### Idle configuration
exec swayidle \
- timeout 120 swaylock \
- timeout 180 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on"' \
+ timeout 120 'swaymsg "output * dpms off"' \
+ resume 'swaymsg "output * dpms on"' \
before-sleep swaylock
-### Input configuration
-
-input "1739:31251:DLL07BE:01_06CB:7A13_Touchpad" {
- dwt enabled
- tap enabled
- natural_scroll enabled
- middle_emulation enabled
- click_method clickfinger
-}
-
-input "2:7:SynPS/2_Synaptics_TouchPad" {
- events disabled
- dwt enabled
- tap enabled
- natural_scroll enabled
- click_method clickfinger
-}
-
-input "1:1:AT_Translated_Set_2_keyboard" {
- repeat_delay 200
- repeat_rate 45
- xkb_layout us_ab,ir
- xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle
-}
-
### Key bindings
#
#
# Power button
#
-set $locker swaylock && sleep 1
set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
mode "$mode_system" {
- bindsym l exec $locker, mode "default"
- bindsym e exec swaymsg exit, mode "default"
- bindsym s exec $locker && systemctl suspend, mode "default"
- bindsym h exec $locker && systemctl hibernate, mode "default"
- bindsym r exec systemctl reboot, mode "default"
- bindsym Shift+s exec systemctl poweroff -i, mode "default"
+ bindsym l exec swaylock, mode "default"
+ bindsym e exec swaymsg exit, mode "default"
+ bindsym s exec systemctl suspend, mode "default"
+ bindsym h exec systemctl hibernate, mode "default"
+ bindsym r exec systemctl reboot, mode "default"
+ bindsym Shift+s exec systemctl poweroff -i, mode "default"
# back to normal: Enter, Escape, or q
bindsym Return mode "default"
# font pango: Liberation Mono 9
include /etc/sway/config.d/*
+include ~/.config/sway/`hostname`
+
+#+end_src
+
+*** langa
+:PROPERTIES:
+:header-args+: :tangle ~/.config/sway/langa
+:END:
+
+#+begin_src conf
+input "2:7:SynPS/2_Synaptics_TouchPad" {
+ events disabled
+ dwt enabled
+ tap enabled
+ natural_scroll enabled
+ click_method clickfinger
+}
+
+input "1:1:AT_Translated_Set_2_keyboard" {
+ repeat_delay 200
+ repeat_rate 45
+ xkb_layout us_ab,ir
+ xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle
+}
#+end_src
+*** shemshak
+:PROPERTIES:
+:header-args+: :tangle ~/.config/sway/shemshak
+:END:
+
+#+begin_src conf
+input "1739:31251:DLL07BE:01_06CB:7A13_Touchpad" {
+ dwt enabled
+ tap enabled
+ natural_scroll enabled
+ middle_emulation enabled
+ click_method clickfinger
+}
+
+input "1:1:AT_Translated_Set_2_keyboard" {
+ repeat_delay 200
+ repeat_rate 45
+ xkb_layout us,ir
+ xkb_options ctrl:nocaps,altwin:swap_alt_win,ctrl:rctrl_ralt,grp:shifts_toggle
+}
+#+end_src
** swaylock
:PROPERTIES:
:header-args+: :tangle ~/.config/swaylock/config