sumarsono.com
Take it with a grain of salt


Menambahkan Trackpad Gesture Ke Manjaro Linux

Posted on

Distro linux dengan kemampuan trackpad gesture tentu akan menyenangkan. Haha. Bayangkan swipe 3 jari ke kanan/kiri untuk switch virtualdesktop/workspace. Praktis. Bayangkan bisa swipe 3 jari up/down untuk membuka Gnome activites. Praktis. Terlebih untuk user yang terbiasa menggunakan gesture di Macbook. Meskipun tidak sama, tapi setidaknya mengobati sedikit kerinduan mereka.

Perkenalkan libinput-gesture,

Libinput-gestures is a utility which reads libinput gestures from your touchpad and maps them to gestures you configure in a configuration file. Each gesture can be configured to activate a shell command which is typically an xdotool command to action desktop/window/application keyboard combinations and commands. See the examples in the provided libinput-gestures.conf file. My motivation for creating this is to use triple swipe up/down to switch workspaces, and triple swipe right/left to go backwards/forwards in my browser, as per the default configuration.

libinput gesture ini keren, aku jadi bisa menambahkan fungsi baru ke trackpad. Konfigurasi libinput-gesture yang aku sukai:

# Move to next workspace
gesture swipe left      3 _internal ws_up

# Move to prev workspace
gesture swipe right     3 _internal ws_down

# Activities
gesture swipe up        3 xdotool key super+s
gesture swipe down      3 xdotool key super+s

Cus ke laman github libinput-gesture, dan install. Gak nyesel.