X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Fconfig.jinja;h=46e7fc66a615d22c1a87c06fff89174e2d13928a;hb=cea958cf0a56c52e8e5e8bef96c7abdee768fe34;hp=8758db845dfbae1d5dce07e74768bafb2908db44;hpb=c83a2b0fed03a506d8148d36d0ad36444c9b3315;p=max%2Fsaltfiles.git diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index 8758db8..46e7fc6 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -46,7 +46,7 @@ set $term foot # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. -set $menu dmenu_path | wofi --dmenu | xargs swaymsg exec -- +set $menu rofi -show drun | xargs swaymsg exec -- include /etc/sway/config-vars.d/* @@ -78,7 +78,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill exec swayidle -w \ timeout 300 "{{lockcmd}}" \ - timeout 600 'systemctl suspend' \ + timeout 600 'systemctl hybrid-sleep' \ before-sleep "{{lockcmd}}" @@ -96,6 +96,27 @@ timeout 300 "{{lockcmd}}" \ # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section. # This keyboard has this layout on all machines: + +input 5426:133:Razer_Razer_Basilisk_V2 { + accel_profile flat + pointer_accel -0.5 +} + + +input 1267:12356:ELAN1200:00_04F3:3044_Touchpad { + dwt enabled + tap enabled + tap_button_map lmr + natural_scroll enabled +} + +input 2362:597:UNIW0001:00_093A:0255_Touchpad { + dwt enabled + tap enabled + tap_button_map lmr + natural_scroll enabled +} + input 1241:36:HOLDCHIP_USB_Keyboard { xkb_layout us xkb_variant colemak @@ -191,16 +212,12 @@ input 1133:49948:Logitech_USB_Keyboard { # # Switch to workspace {% for i in range(10) %} - bindsym --no-repeat $mod+{{ i }} workspace number {{ i }}; exec "echo 1 > /tmp/sovpipe" - bindsym --release $mod+{{ i }} exec "echo 0 > /tmp/sovpipe" + bindsym $mod+{{ i }} workspace number {{ i }} # Move focused container to workspace bindsym $mod+Shift+{{ i }} move container to workspace number {{ i }} {% endfor %} - bindsym --no-repeat $mod+Shift exec "echo 1 > /tmp/sovpipe" - bindsym --release $mod+Shift exec "echo 0 > /tmp/sovpipe" - # # Layout stuff: # @@ -269,9 +286,8 @@ bindsym $mod+Alt+l exec '{{ lockcmd }}' include /etc/sway/config.d/* # host specific section {%- do salt.log.error('sway/files/' + host) -%} -{% include 'sway/files/' + host %} -exec rm -f /tmp/sovpipe && mkfifo /tmp/sovpipe && tail -f /tmp/sovpipe | sov +{% include 'sway/files/' + host %} for_window [app_id="zoom" title="^zoom$"] border none, floating enable for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable