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:
parent
746c2eab48
commit
decd1e6916
3 changed files with 6 additions and 14 deletions
|
|
@ -150,6 +150,12 @@ bindcode $mod+Shift+55 mode "$mode_system"
|
||||||
# Systemd environment
|
# Systemd environment
|
||||||
exec "systemctl --user import-environment; systemctl --user start sway-session.target"
|
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
|
# Device specific configuration
|
||||||
include device
|
include device
|
||||||
|
|
||||||
|
|
|
||||||
4
sway/rei
4
sway/rei
|
|
@ -2,10 +2,6 @@
|
||||||
output * bg ~/Bilder/natur-wallpaper-hd-03.jpg fill
|
output * bg ~/Bilder/natur-wallpaper-hd-03.jpg fill
|
||||||
|
|
||||||
# Input configuration
|
# Input configuration
|
||||||
input "1:1:AT_Translated_Set_2_keyboard" {
|
|
||||||
xkb_layout de
|
|
||||||
xkb_variant neo
|
|
||||||
}
|
|
||||||
input "2:14:ETPS/2_Elantech_Touchpad" {
|
input "2:14:ETPS/2_Elantech_Touchpad" {
|
||||||
accel_profile adaptive
|
accel_profile adaptive
|
||||||
tap enabled
|
tap enabled
|
||||||
|
|
|
||||||
10
sway/yuki
10
sway/yuki
|
|
@ -3,16 +3,6 @@ output * bg "~/.config/sway/bg.png" fill
|
||||||
output HDMI-A-1 position 0,0
|
output HDMI-A-1 position 0,0
|
||||||
output DP-1 resolution 1920x1080 position 1920,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
|
# Monitor setup
|
||||||
set $mode_monitor Monitor (l) single left, (r) single right, (h) dual horizontal, ((v) dual vertical
|
set $mode_monitor Monitor (l) single left, (r) single right, (h) dual horizontal, ((v) dual vertical
|
||||||
mode "$mode_monitor" {
|
mode "$mode_monitor" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue