Add sway config

This commit is contained in:
Tobias Reisinger 2024-08-21 16:34:57 +02:00
parent db15c95662
commit cb3ea5254e
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
21 changed files with 347 additions and 3 deletions

View file

@ -0,0 +1,40 @@
# 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