bulletmark / libinput-gestures

Actions gestures on your touchpad using libinput

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gestures with keyboard modifiers

oati opened this issue · comments

Would it be possible to have a feature to run different commands depending on the modifier state of the keyboard?

For example, I could

  • swipe left/right to switch workspaces,
  • hold ctrl and swipe left/right to create workspaces,
  • hold alt and swipe left/right to move the focused window across workspaces,
  • hold ctrl+alt and swipe left/right to move the focused window to a new workspace

You have to question whether it is sensible for a user to use their keyboard and their touch-pad to invoke an action. If they have to use the keyboard then why not just assign a keyboard shortcut for that action directly (i.e. GNOME keyboard shortcuts standard dialog)? I will leave this as an open enhancement because it is possible to implement, but I can't presently see much utility for it.

To implement this would need another attribute to be added to a gesture definition in the config file and since I unfortunately chose a very simple custom format originally then it would mean that I should change it to YAML or TOML etc. I would also have to keep compatibility with the existing format.