]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/sway/files/config.jinja
Create dirs
[max/saltfiles.git] / states / sway / files / config.jinja
index f7259a67b77b37b336353c27b3a18703d317d731..46e7fc66a615d22c1a87c06fff89174e2d13928a 100644 (file)
@@ -42,11 +42,11 @@ set $down j
 set $up k
 set $right l
 # Your preferred terminal emulator
-set $term kitty
+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/*
 
@@ -74,6 +74,14 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
 # your displays after another 300 seconds, and turn your screens back on when
 # resumed. It will also lock your screen before your computer goes to sleep.
 
+{% set lockcmd = "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg" %}
+
+exec swayidle -w \
+timeout 300 "{{lockcmd}}" \
+  timeout 600 'systemctl hybrid-sleep' \
+    before-sleep "{{lockcmd}}"
+
+
 ### Input configuration
 #
 # Example configuration:
@@ -88,6 +96,27 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
 # 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
@@ -122,6 +151,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:
@@ -175,29 +211,13 @@ 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 $mod+{{ i }} workspace number {{ i }}
+
+        # Move focused container to workspace
+        bindsym $mod+Shift+{{ i }} move container to workspace number {{ i }}
+    {% endfor %}
+
 #
 # Layout stuff:
 #
@@ -260,8 +280,16 @@ mode "resize" {
 }
 bindsym $mod+r mode "resize"
 
+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 %}
+
+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