Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced input controls #234

Open
mecattaf opened this issue Sep 5, 2024 · 0 comments
Open

Advanced input controls #234

mecattaf opened this issue Sep 5, 2024 · 0 comments

Comments

@mecattaf
Copy link

mecattaf commented Sep 5, 2024

In sway we have access to per-device input settings, for example:

# Input Devices
# general
input type:touchpad {
#input "1452:613:Apple_Inc._Magic_Trackpad" {
#input "76:613:Apple_Inc._Magic_Trackpad_2" {
    dwt enabled
    tap enabled
    natural_scroll enabled
    click_method clickfinger
}
# x1n trackpad
input "1267:12624:ELAN0670:00_04F3:3150_Touchpad" {
    dwt enabled
    tap enabled
    natural_scroll enable
    scroll_factor 0.5
    middle_emulation enabled
}
# tex keyboard
input "1241:1031:USB-HID_Keyboard" {
    xkb_options "altwin:menu_win"
}
input type:keyboard {
  xkb_options caps:none
}

Also some keys like CapsLock can be used to perform actions such as:
# Key bindings bindsym --to-code Caps_Lock exec swaymsg input type:touchpad events toggle && notify-send "🚀 Trackpad Toggled" -t 150
I use it to turn the touchpad on and off.

It would be great to conserve this functionality in miracle-wm. Sway-input is very complete and it would be a shame to lose its functionality when moving to this new window manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant