Merged swayconfig with fixes from XPS

This commit is contained in:
Patrick Wadström 2020-09-02 20:20:40 +02:00
parent 7c19d483b4
commit 7b1ae475e7

View File

@ -1,12 +1,15 @@
# Sway SuperConfig # Sway SuperConfig
# Set Swedish layout # Set Swedish layout
# and bind caps to ctrl please
input "type:keyboard" { input "type:keyboard" {
xkb_layout "se" xkb_layout "se"
xkb_options ctrl:nocaps xkb_options ctrl:nocaps
repeat_rate 35
repeat_delay 400
} }
# Set modified to Windows Key # Set modifier to Windows Key
set $mod Mod4 set $mod Mod4
# Setup VIM navigation # Setup VIM navigation
@ -27,13 +30,12 @@ output * bg $HOME/.config/sway/wallpaper.jpg fill
# Workspaces # Workspaces
set $ws1 1:C set $ws1 1:C
# Key bindings # Key bindings
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+Space exec $menu 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 --release $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you want to exit?' -b 'Yes' 'swaymsg exit' 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+8 workspace 8
bindsym $mod+9 workspace 9 bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10 bindsym $mod+0 workspace 10
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
# Move focused container to workspace # Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2 bindsym $mod+Shift+2 move container to workspace 2
@ -211,13 +215,11 @@ client.background $base07
# --------------------------------------------------- # # --------------------------------------------------- #
# Screensaver + Locking # Screensaver + Locking
# --------------------------------------------------- # # --------------------------------------------------- #
set $lock swaylock -c 000000
exec swayidle -w \ exec swayidle -w \
timeout 300 $lock \ timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' \ timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep $lock before-sleep 'swaylock -f -c 000000'
set $lockman exec bash ~/.config/sway/lockman.sh set $lockman exec bash ~/.config/sway/lockman.sh
bindsym $mod+Mod1+Ctrl+l $lockman bindsym $mod+Mod1+Ctrl+l $lockman
# --------------------------------------------------- # # --------------------------------------------------- #