40 lines
1 KiB
Text
40 lines
1 KiB
Text
# Logo key. Use Mod1 for Alt.
|
|
set $mod Mod4
|
|
# Home row direction keys, like vim
|
|
set $left h
|
|
set $down j
|
|
set $up k
|
|
set $right l
|
|
|
|
# Your preferred application launcher
|
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
|
# on the original workspace that the command was run on.
|
|
set $menu j4-dmenu-desktop --dmenu="$DMENU" | xargs swaymsg exec --
|
|
|
|
output * bg #1E1F29 solid_color
|
|
|
|
### Idle configuration
|
|
exec swayidle -w \
|
|
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
|
timeout 600 'swaylock -f -c 000000' \
|
|
before-sleep 'swaylock -f -c 000000'
|
|
|
|
### Input configuration
|
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
|
# Read `man 5 sway-input` for more information about this section.
|
|
input * {
|
|
xkb_layout "de"
|
|
xkb_numlock enable
|
|
xkb_options "caps:none"
|
|
accel_profile flat
|
|
}
|
|
|
|
mouse_warping none
|
|
focus_follows_mouse always
|
|
|
|
default_border pixel 1
|
|
default_floating_border pixel 1
|
|
|
|
smart_borders on
|
|
smart_gaps on
|
|
gaps inner 10
|