From 7b1ae475e7acd1a71f52b08642d84942ce63313a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Wadstr=C3=B6m?= Date: Wed, 2 Sep 2020 20:20:40 +0200 Subject: [PATCH] Merged swayconfig with fixes from XPS --- .config/sway/config | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index f630d5c..2351714 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,12 +1,15 @@ # Sway SuperConfig # Set Swedish layout +# and bind caps to ctrl please input "type:keyboard" { xkb_layout "se" xkb_options ctrl:nocaps + repeat_rate 35 + repeat_delay 400 } -# Set modified to Windows Key +# Set modifier to Windows Key set $mod Mod4 # Setup VIM navigation @@ -27,13 +30,12 @@ output * bg $HOME/.config/sway/wallpaper.jpg fill # Workspaces set $ws1 1:C - # Key bindings bindsym $mod+Return exec $term bindsym $mod+Shift+q kill bindsym $mod+Space exec $menu -bindsym $mod+Shift+c nop # suppress the keystroke (or it will type a capital C before reloading sway +bindsym $mod+Shift+c nop # suppress the keystroke (or it will type a capital C before reloading sway) bindsym --release $mod+Shift+c reload bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you want to exit?' -b 'Yes' 'swaymsg exit' @@ -80,6 +82,8 @@ bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 +bindsym $mod+Tab workspace next +bindsym $mod+Shift+Tab workspace prev # Move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+2 move container to workspace 2 @@ -211,13 +215,11 @@ client.background $base07 # --------------------------------------------------- # # Screensaver + Locking # --------------------------------------------------- # -set $lock swaylock -c 000000 exec swayidle -w \ - timeout 300 $lock \ - timeout 600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - before-sleep $lock - + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' set $lockman exec bash ~/.config/sway/lockman.sh bindsym $mod+Mod1+Ctrl+l $lockman # --------------------------------------------------- #