2023-06-30 21:13:48 +00:00
|
|
|
################################################################################
|
|
|
|
# Keyboard
|
|
|
|
################################################################################
|
|
|
|
|
2023-12-11 05:11:31 +00:00
|
|
|
# Map touchscreen to output
|
|
|
|
input 1386:21128:Wacom_HID_5288_Finger map_to_output eDP-1
|
|
|
|
|
2023-06-30 21:13:48 +00:00
|
|
|
# I use a Dvorak keyboard, like a weirdo
|
2024-10-02 18:34:34 +00:00
|
|
|
input * xkb_layout "us,us"
|
|
|
|
input * xkb_variant "dvorak,"
|
|
|
|
input * xkb_options "grp:win_space_toggle, caps:swapescape, compose:ralt"
|
2023-06-30 21:13:48 +00:00
|
|
|
|
|
|
|
# Key repeat values
|
|
|
|
input * repeat_delay 300
|
|
|
|
input * repeat_rate 30
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Mouse
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# TrackPoint acceleration
|
|
|
|
input 1133:49291:Logitech_G502_HERO_SE accel_profile flat
|
|
|
|
input 1133:49291:Logitech_G502_HERO_SE pointer_accel -0.966
|
|
|
|
|
|
|
|
# When using a 2-button mouse, simulate button 3 with simultaneous press
|
|
|
|
input * middle_emulation enable
|
|
|
|
|
|
|
|
# Hide cursor after 5 seconds
|
|
|
|
seat seat0 hide_cursor 5000
|
|
|
|
|
|
|
|
# Move cursor to center of container when switching
|
|
|
|
mouse_warping container
|
|
|
|
|
|
|
|
# Disable mouse as trigger to wake from idle
|
|
|
|
#seat * idle_wake keyboard switch
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Touchscreen
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Map touchscreen to output
|
|
|
|
input 1386:20615:Wacom_Pen_and_multitouch_sensor_Pen map_to_output eDP-1
|
|
|
|
input 1386:20615:Wacom_Pen_and_multitouch_sensor_Finger map_to_output eDP-1
|
|
|
|
#
|
|
|
|
# bindswitch [lib|tablet]:[on|off|toggle]
|
|
|
|
bindswitch --reload tablet:on exec ${HOME}/scripts/thinkpad/tablet_mode.sh on ; busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
|
|
|
bindswitch --reload tablet:off exec ${HOME}/scripts/thinkpad/tablet_mode.sh off ; busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Lid switch
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Restore display configuration on reload
|
|
|
|
bindswitch --reload lid:on /home/jpm/scripts/sway/displays.pl detached
|