summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-04-22 13:15:37 +0200
committerRobert Günzler <r@gnzler.io>2021-04-26 02:09:48 +0200
commitd3497269ec01f89178b784169bdc53cbd16aafa2 (patch)
treeb13b8e7123d97f65335466d43f7a3db640d9ba01
parent3f57eef6fb8a16c75b68453be7615678884a5116 (diff)
sway: update config
-rw-r--r--.config/sway/auto.conf2
-rw-r--r--.config/sway/binds.conf34
-rw-r--r--.config/sway/config6
-rw-r--r--.config/sway/input.conf9
4 files changed, 30 insertions, 21 deletions
diff --git a/.config/sway/auto.conf b/.config/sway/auto.conf
index ae56c9c..043d0ad 100644
--- a/.config/sway/auto.conf
+++ b/.config/sway/auto.conf
@@ -16,7 +16,7 @@ for_window [class="balena-etcher-electron"] floating enable; border normal
 
 for_window [app_id="firefox.*" title="Picture-in-Picture"] floating enable, sticky enable, border none
 for_window [app_id="firefox.*" title="^Developer Tools"] floating enable
-for_window [app_id="firefox.*" title="Sharing Indicator$"] floating enable, border none, move position 0 ppt 50 ppt, sticky enable
+for_window [app_id="firefox.*" title="Sharing Indicator$"] floating enable, border none, sticky enable; exec centercon -w 0.025 lm
 for_window [app_id="firefox.*" title="^Close tabs?"] floating enable
 for_window [app_id="firefox.*" title="^File Upload$"] exec centercon -w .6
 for_window [app_id="firefox.*" title="^Save As$"] exec centercon -w .6
diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf
index 193ccd1..e7bab16 100644
--- a/.config/sway/binds.conf
+++ b/.config/sway/binds.conf
@@ -121,17 +121,17 @@ bindsym $mod+Backslash splith
 # bindsym $mod+Bracketright splith
 bindsym $mod+g layout toggle split
 
-mode "swap" {
-    bindsym $left move left ; focus right ; mode "default"
-    bindsym $down move down ; focus up ; mode "default"
-    bindsym $up move up ; focus down ; mode "default"
-    bindsym $right move right ; focus left ; mode "default"
-
-    # return to default mode
-    bindsym Return mode "default"
-    bindsym Escape mode "default"
-}
-bindsym $mod+i mode "swap"
+# mode "swap" {
+#     bindsym $left move left ; focus right ; mode "default"
+#     bindsym $down move down ; focus up ; mode "default"
+#     bindsym $up move up ; focus down ; mode "default"
+#     bindsym $right move right ; focus left ; mode "default"
+
+#     # return to default mode
+#     bindsym Return mode "default"
+#     bindsym Escape mode "default"
+# }
+# bindsym $mod+i mode "swap"
 
 # Make the current focus fullscreen
 bindsym $mod+f fullscreen
@@ -189,8 +189,8 @@ bindsym $mod+backspace scratchpad show
 mode "resize" {
     set $rate 25
     bindsym $left resize shrink width $rate
-    bindsym $down resize grow height $rate
-    bindsym $up resize shrink height $rate
+    bindsym $down resize shrink height $rate
+    bindsym $up resize grow height $rate
     bindsym $right resize grow width $rate
 
     bindsym Shift+$down resize shrink width $rate; resize shrink height $rate
@@ -219,9 +219,11 @@ bindsym $mod+Shift+g mode "gaps"
 # }}}
 
 # Misc {{{
-bindsym $mod+Shift+x mark --toggle "x"
-bindsym $mod+x [con_mark="x"] focus
-bindsym $mod+Ctrl+x swap container with mark "x"
+bindsym $mod+i exec anthywl-toggle
+# bindsym $mod+Shift+x mark --toggle "x"
+# bindsym $mod+x [con_mark="x"] focus
+# bindsym $mod+Ctrl+x swap container with mark "x"
+
 
 # Media volume controls
 bindsym XF86AudioMute exec soundswitch -m
diff --git a/.config/sway/config b/.config/sway/config
index a03a493..3ad2510 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -7,18 +7,18 @@ output * adaptive_sync on
 exec light -S 80
 
 exec dbus-update-activation-environment --all
+exec once pipewire
+exec once mako
 exec once oguri
 exec once kanshi
 exec once waybar
-exec once gammastep
-exec once pipewire
-exec once mako
 exec once swayidle -w \
 	timeout 540 'lock' \
 	timeout 800 'swaymsg output \* dpms off' \
 	     resume 'swaymsg output \* dpms on' \
 	before-sleep 'lock' \
 	lock 'lock'
+exec once gammastep
 # spawn foot server
 exec once foot -s
 
diff --git a/.config/sway/input.conf b/.config/sway/input.conf
index 1325cfd..ade53ae 100644
--- a/.config/sway/input.conf
+++ b/.config/sway/input.conf
@@ -41,6 +41,8 @@ input $slimblade {
    accel_profile adaptive
    # pointer_accel 0.8
    # scroll_factor 2
+   scroll_method on_button_down
+   scroll_button BTN_MIDDLE
 }
 # button layout:
 # ---------
@@ -52,12 +54,17 @@ bindsym --input-device=$slimblade --whole-window button8 seat - cursor press but
 bindsym --input-device=$slimblade --whole-window button3 seat - cursor press button8, seat - cursor release button8
 
 input 1133:16500:Logitech_G305 {
-   accel_profile adaptive
+   accel_profile flat
+   pointer_accel 0
+   natural_scroll enabled
 }
 
 set $pen 10429:148:XP-PEN_STAR_G640_Pen
 input $pen {
    accel_profile flat
+   # scroll_method on_button_down
+   # BTN_STYLUS2
+   # scroll_button 332
 }
 # seat pen attach $pen
 # seat pen hide_cursor 10000