Files
nixos-dotfiles/config/sway/config
T
2026-06-03 10:05:15 +02:00

94 lines
2.4 KiB
Plaintext

set $mod Mod4
set $left h
set $right l
set $up k
set $down j
set $red #cd0a00
set $white #f3eeea
set $black #0a0a0a
set $term foot
set $menu wmenu-run
exec "foot --server"
output * bg ~/Pictures/henri.jpg fill
input type:keyboard {
xkb_layout "se"
xkb_variant "nodeadkeys"
xkb_options "caps:escape"
}
input type:touchpad {
tap enabled
natural_scroll enabled
}
default_border pixel
default_floating_border pixel
bindsym $mod+shift+q exec wlogout
bindsym $mod+Return exec $term
bindsym $mod+q kill
bindsym $mod+d exec $menu
bindsym $mod+space floating toggle
bindsym $mod+Shift+r reload
bindsym $mod+Alt+h splith
bindsym $mod+Alt+v splitv
bindsym $mod+f fullscreen
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
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+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
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+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
mode "resize" {
bindsym Right resize shrink width 50px
bindsym Up resize grow height 50px
bindsym Down resize shrink height 50px
bindsym Left resize grow width 50px
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
gaps inner 10
exec_always pkill waybar; waybar
bindsym $mod+Shift+s exec 'grim -l 0 -g "$(slurp)" - | wl-copy'
bindsym $mod+Alt+s exec 'mkdir -p ~/Pictures/Screenshots && grim -l 0 -g "$(slurp)" ~/Pictures/Screenshots/$(date +"%Y-%m-%d_%H-%M-%S").png'
exec swayidle -w \
timeout 300 'swaylock -f -c 1a1b26' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 1a1b26'