1
0
Fork 0

sway: Simplify input configuration

Simplify the input configuration in sway by setting the keyboard layout
based on the type and move the declaration from the device-specific
files to the main configuration file
This commit is contained in:
coderkun 2020-07-04 15:21:29 +02:00
parent 746c2eab48
commit decd1e6916
3 changed files with 6 additions and 14 deletions

View file

@ -150,6 +150,12 @@ bindcode $mod+Shift+55 mode "$mode_system"
# Systemd environment
exec "systemctl --user import-environment; systemctl --user start sway-session.target"
# Input configuration
input type:keyboard {
xkb_layout de
xkb_variant neo
}
# Device specific configuration
include device

View file

@ -2,10 +2,6 @@
output * bg ~/Bilder/natur-wallpaper-hd-03.jpg fill
# Input configuration
input "1:1:AT_Translated_Set_2_keyboard" {
xkb_layout de
xkb_variant neo
}
input "2:14:ETPS/2_Elantech_Touchpad" {
accel_profile adaptive
tap enabled

View file

@ -3,16 +3,6 @@ output * bg "~/.config/sway/bg.png" fill
output HDMI-A-1 position 0,0
output DP-1 resolution 1920x1080 position 1920,0
# Input configuration
input "65261:4871:ErgoDox_EZ_ErgoDox_EZ" {
xkb_layout de
xkb_variant neo
}
input "5426:66:Razer_Razer_Abys" {
drag_lock disabled
accel_profile flat
}
# Monitor setup
set $mode_monitor Monitor (l) single left, (r) single right, (h) dual horizontal, ((v) dual vertical
mode "$mode_monitor" {