]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/sway/files/config.jinja
Reconfigure monitors on baryte
[max/saltfiles.git] / states / sway / files / config.jinja
index 30724ae742049f54a3c484a7371c6f84d2482c49..1a12d9d5bb91844cea8b0ff52989438a247c7cd0 100644 (file)
@@ -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/*
 
@@ -130,6 +130,13 @@ input 9610:4102:Gaming_KB__Gaming_KB {
   xkb_options ctrl:nocaps
 }
 
+
+input 1133:49948:Logitech_USB_Keyboard {
+  xkb_layout gb
+  xkb_variant colemak
+  xkb_options ctrl:nocaps
+}
+
 ### Key bindings
 #
 # Basics:
@@ -184,16 +191,12 @@ input 9610:4102:Gaming_KB__Gaming_KB {
 #
     # 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:
 #
@@ -262,6 +265,10 @@ 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
+for_window [app_id="zoom" title="^zoom$"] border none, floating enable
+for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable
+for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
+for_window [app_id="zoom" title="Zoom Meeting(.*)?"] floating disable, inhibit_idle open