summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-04-01 18:45:34 +0200
committerLeah (ctucx) <leah@ctu.cx>2021-04-01 18:45:34 +0200
commit560f06b2fc6e8d41d77a2cddbb5b01e0d7b6723a (patch)
tree71a2976aa921c42d8c27ed494a1ac7c90ea165a2
parent1651eaffe27af00495f63dcf4d510baa3a0cd28d (diff)
downloaddotfiles-560f06b2fc6e8d41d77a2cddbb5b01e0d7b6723a.tar.gz
dotfiles-560f06b2fc6e8d41d77a2cddbb5b01e0d7b6723a.tar.bz2
dotfiles-560f06b2fc6e8d41d77a2cddbb5b01e0d7b6723a.zip
update sway-config
-rw-r--r--private_dot_config/sway/config.tmpl57
1 files changed, 37 insertions, 20 deletions
diff --git a/private_dot_config/sway/config.tmpl b/private_dot_config/sway/config.tmpl
index 79bbdc0..2b76a16 100644
--- a/private_dot_config/sway/config.tmpl
+++ b/private_dot_config/sway/config.tmpl
@@ -56,12 +56,22 @@ input "2:7:SynPS/2_Synaptics_TouchPad" events disabled
{{ end }}
+hide_edge_borders both
+workspace_auto_back_and_forth yes
+default_border pixel 2
+smart_borders on
+
+assign [app_id="firefox"] 1: Web
+assign [app_id="thunderbird"] 2: mail
+assign [app_id="subl"] 4
+
+
### Auto-Start
#
exec swaymsg 'workspace 1; exec firefox;'
-exec swaymsg 'workspace 2; exec element-desktop; exec thunderbird-beta;'
+exec swaymsg 'workspace 2; exec thunderbird-beta;'
exec swaymsg 'workspace 3; exec $term; exec $term;'
-exec swaymsg 'workspace 5; exec subl`;'
+exec swaymsg 'workspace 4; exec subl;'
exec swaymsg 'workspace 6; exec thunar;'
exec swaymsg 'workspace 7; exec qtpass;'
exec swaymsg 'workspace 1;'
@@ -69,7 +79,8 @@ exec swaymsg 'workspace 1;'
### Key bindings
-# Basics:
+bindswitch --locked lid:on output $display_laptop disable
+bindswitch --locked lid:off output $display_laptop enable
bindsym $mod+Return exec $term
bindsym $mod+Space exec $menu
@@ -88,12 +99,17 @@ bindsym XF86AudioLowerVolume exec /usr/bin/pulseaudio-ctl down
bindsym XF86AudioMute exec /usr/bin/pulseaudio-ctl mute
bindsym XF86AudioMicMute exec /usr/bin/pulseaudio-ctl mute-input
+{{ if (eq .chezmoi.hostname "stasicontainer") }}
+bindsym XF86LaunchA exec /usr/bin/playerctl play-pause
+bindsym XF86Search exec /usr/bin/playerctl next
+bindsym XF86MyComputer exec /usr/bin/playerctl previous
+{{ else }}
bindsym XF86AudioPlay exec /usr/bin/playerctl play-pause
bindsym XF86AudioNext exec /usr/bin/playerctl next
-bindsym XF86AudioPrev exec /usr/bin/playerctl previous
-
-
+bindsym XF86AudioPrev exec /usr/bin/playerctl previous
+{{ end}}
+#Kill an application
bindsym $mod+Shift+q kill
# Drag floating windows by holding down $mod and left mouse button.
@@ -110,6 +126,7 @@ bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
+bindsym $mod+Tab move workspace back_and_forth
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@@ -118,24 +135,24 @@ bindsym $mod+Shift+Right move right
# 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+1 workspace 1: Web
+bindsym $mod+2 workspace 2: Mail
+bindsym $mod+3 workspace 3: Term
+bindsym $mod+4 workspace 4: Code
bindsym $mod+5 workspace number 5
-bindsym $mod+6 workspace number 6
+bindsym $mod+6 workspace 6: Files
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+1 move container to workspace 1: Web
+bindsym $mod+Shift+2 move container to workspace 2: Mail
+bindsym $mod+Shift+3 move container to workspace 3: Term
+bindsym $mod+Shift+4 move container to workspace 4: Code
bindsym $mod+Shift+5 move container to workspace number 5
-bindsym $mod+Shift+6 move container to workspace number 6
+bindsym $mod+Shift+6 move container to workspace 6: Files
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
@@ -172,10 +189,10 @@ bindsym $mod+minus scratchpad show
# Resizing containers:
mode "resize" {
- bindsym Left resize shrink width 10px
- bindsym Down resize grow height 10px
- bindsym Up resize shrink height 10px
- bindsym Right resize grow width 10px
+ bindsym Right resize shrink width 10px
+ bindsym Up resize grow height 10px
+ bindsym Down resize shrink height 10px
+ bindsym Left resize grow width 10px
bindsym Return mode "default"
bindsym Escape mode "default"