X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Fconfig.jinja;h=8758db845dfbae1d5dce07e74768bafb2908db44;hb=c83a2b0fed03a506d8148d36d0ad36444c9b3315;hp=ac0da0fc34a50897115e69bd0ff01de8f07ccdd2;hpb=d3b03472ae3107e09e117def65c739aa9aaf00bf;p=max%2Fsaltfiles.git diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index ac0da0f..8758db8 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -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: @@ -183,29 +190,17 @@ input 9610:4102:Gaming_KB__Gaming_KB { # Workspaces: # # Switch to workspace - bindsym $mod+1 workspace number 1 - bindsym $mod+2 workspace number 2 - bindsym $mod+3 workspace number 3 - bindsym $mod+4 workspace number 4 - bindsym $mod+5 workspace number 5 - bindsym $mod+6 workspace number 6 - bindsym $mod+7 workspace number 7 - bindsym $mod+8 workspace number 8 - bindsym $mod+9 workspace number 9 - bindsym $mod+0 workspace number 10 - # Move focused container to workspace - bindsym $mod+Shift+1 move container to workspace number 1 - bindsym $mod+Shift+2 move container to workspace number 2 - bindsym $mod+Shift+3 move container to workspace number 3 - bindsym $mod+Shift+4 move container to workspace number 4 - bindsym $mod+Shift+5 move container to workspace number 5 - bindsym $mod+Shift+6 move container to workspace number 6 - bindsym $mod+Shift+7 move container to workspace number 7 - bindsym $mod+Shift+8 move container to workspace number 8 - bindsym $mod+Shift+9 move container to workspace number 9 - bindsym $mod+Shift+0 move container to workspace number 10 - # Note: workspaces can have any name you want, not just numbers. - # We just use 1-10 as the default. + {% 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" + + # 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: # @@ -275,3 +270,10 @@ 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