summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-04-16 23:42:15 +0200
committerLeah (ctucx) <leah@ctu.cx>2021-04-16 23:42:15 +0200
commit5aa756f91db865fcc64bd80068f2ed38ad15869a (patch)
tree1b08d4b11933c2acc84a959eebb87b0d260be89a
parenta31d14622a690b80528d41a81fe608dd14169259 (diff)
downloaddotfiles-5aa756f91db865fcc64bd80068f2ed38ad15869a.tar.gz
dotfiles-5aa756f91db865fcc64bd80068f2ed38ad15869a.tar.bz2
dotfiles-5aa756f91db865fcc64bd80068f2ed38ad15869a.zip
.config/sway: update config
-rw-r--r--private_dot_config/sway/config.tmpl68
1 files changed, 53 insertions, 15 deletions
diff --git a/private_dot_config/sway/config.tmpl b/private_dot_config/sway/config.tmpl
index 1e13aaa..42d2dab 100644
--- a/private_dot_config/sway/config.tmpl
+++ b/private_dot_config/sway/config.tmpl
@@ -30,6 +30,14 @@ output DSI-1 resolution 720x1280 transform 90
### Input configuration
#
+{{ if (eq .chezmoi.hostname "briefkasten") }}
+input 1386:20816:Wacom_Pen_and_multitouch_sensor_Finger map_to_output eDP-1
+input 1386:20816:Wacom_Pen_and_multitouch_sensor_Pen map_to_output eDP-1
+bindcode 200 input type:touchpad events enabled, exec 'killall squeekboard'
+bindcode 201 input type:touchpad events disabled, exec 'squeekboard &'
+{{ end }}
+
+
{{ if (eq .chezmoi.hostname "ludmilla") }}
# settings for gpd micropc
input "24704:32865:AMR-4630-XXX-0-_0-1023_USB_KEYBOARD_Mouse" scroll_button 274
@@ -43,6 +51,7 @@ input "*" {
xkb_options grp:alt_shift_toggle
}
+{{ if (eq .chezmoi.hostname "coladose") }}
input "2:7:SynPS/2_Synaptics_TouchPad" {
accel_profile adaptive
natural_scroll enable
@@ -50,16 +59,26 @@ input "2:7:SynPS/2_Synaptics_TouchPad" {
click_method clickfinger
}
-{{ if (eq .chezmoi.hostname "coladose") }}
# Disable touchpad on Thonkpad T470
input "2:7:SynPS/2_Synaptics_TouchPad" events disabled
{{ end }}
-hide_edge_borders both
+
+
+# Style
+font pango:monospace 12px
+default_border pixel 3
+titlebar_border_thickness 3
+
+## Window decoration
+# class border backgr. text indicator child_border
+client.focused #585858 #585858 #eceff4 #8fbcbb #585858
+client.focused_inactive #282828 #282828 #d8dee9 #4c566a #282828
+client.unfocused #282828 #282828 #d8dee9 #4c566a #282828
+client.urgent #ebcb8b #ebcb8b #2e3440 #8fbcbb #ebcb8b
+
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
@@ -68,13 +87,13 @@ assign [app_id="subl"] 4: Code
### Auto-Start
#
-exec swaymsg 'workspace 1; exec firefox;'
-exec swaymsg 'workspace 2; exec thunderbird-beta;'
-exec swaymsg 'workspace 3; exec $term; exec $term;'
-exec swaymsg 'workspace 4; exec subl;'
-exec swaymsg 'workspace 6; exec thunar;'
-exec swaymsg 'workspace 7; exec qtpass;'
-exec swaymsg 'workspace 1;'
+exec firefox
+exec thunderbird-beta
+exec subl
+
+exec swaymsg 'workspace 3: Term; exec $term; exec $term;'
+exec swaymsg 'workspace 6: Files; exec thunar;'
+exec swaymsg 'workspace 1: Web;'
@@ -84,7 +103,6 @@ bindswitch --locked lid:off output $display_laptop enable
bindsym $mod+Return exec $term
bindsym $mod+Space exec $menu
-#bindsym $mod+l exec systemctl suspend
bindsym Shift+Print exec grim ~/Pictures/Screenshots/$(date +"%Y-%m-%d_%H:%m:%S").png
bindsym $mod+Shift+Print exec grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +"%Y-%m-%d_%H:%m:%S").png
bindsym Print exec grim - | wl-copy
@@ -111,7 +129,8 @@ bindsym XF86AudioPrev exec /usr/bin/playerctl previous
#Kill an application
bindsym $mod+Shift+q kill
-
+bindsym Alt+F4 kill
+
# Drag floating windows by holding down $mod and left mouse button.
floating_modifier $mod normal
@@ -159,8 +178,8 @@ bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# Layout stuff:
-bindsym $mod+b splith
-bindsym $mod+v splitv
+#bindsym $mod+b splith
+#bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
@@ -196,10 +215,29 @@ mode "resize" {
bindsym Return mode "default"
bindsym Escape mode "default"
+ bindsym $mod+r mode "default"
+}
+
+mode "waybar" {
+ # Hide/show bars
+ bindsym space exec killall -SIGUSR1 waybar
+
+ # Reload configuration
+ bindsym r exec killall -SIGUSR2 waybar
+
+ # Back to normal: Enter or Escape or $mod+b
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+ bindsym $mod+b mode "default"
}
bindsym $mod+r mode "resize"
+bindsym $mod+b mode "waybar"
+
include /etc/sway/config.d/*
+
exec "systemctl --user import-environment; systemctl --user start sway-session.target"
+exec_always 'systemctl --user restart waybar'
+exec_always 'systemctl --user restart mako'