sway: Configure inputs by type instead of identifier

This commit is contained in:
histalek 2022-07-18 08:42:32 +02:00
parent 78ed17ca19
commit 45519b4fa5
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03
2 changed files with 4 additions and 5 deletions

View file

@ -22,9 +22,8 @@ set $disp2 HDMI-A-1
set $disp3 DP-2
## Define inputs
set $keyboard1 1547:8979:Skydigital_nkey_Mechanic_LED_Keyboard
#set $mouse1 1133:49242:Logitech_USB_Optical_Mouse
set $mouse1 7119:5:USB_Optical_Mouse
#set $keyboard1 1547:8979:Skydigital_nkey_Mechanic_LED_Keyboard
#set $mouse1 7119:5:USB_Optical_Mouse
## Define Workspaces
## nerdfonts cheat sheet: https://www.nerdfonts.com/cheat-sheet

View file

@ -3,14 +3,14 @@
# Input configuration #
# =================== #
input $keyboard1 {
input "type:keyboard" {
xkb_layout de
xkb_variant nodeadkeys
xkb_options caps:escape
xkb_numlock enable
}
input $mouse1 {
input "type:mouse" {
accel_profile flat
dwt disabled
scroll_factor 0.5