Add sway config
This commit is contained in:
parent
db15c95662
commit
cb3ea5254e
21 changed files with 347 additions and 3 deletions
40
.config/sway/config.d/20-vars.conf
Normal file
40
.config/sway/config.d/20-vars.conf
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue