This is a manual for OSX like touchpad gestures on arch linux for the awesome window manager. It describes how to trigger awesome actions on swiping with three fingers on the touchpad.
-
Install libinput dependencies
pacaur -S sf86-input-libinput libinput-gestures
-
Add current user to input group
sudo gpasswd -a $USER input
-
Copy gesture config skeleton
cp /etc/libinput-gestures.conf $HOME/.config/libinput-gestures.conf
-
Add a keybinding to your
rc.lua
awful.key({ modkey }, "a",
function ()
awful.layout.set(awful.layout.suit.corner.nw)
for _, c in ipairs(client.get()) do
if c.maximized then
c.maximized = not c.maximized
c:raise()
end
end
end,
{description = "show all open windows of workspace", group = "client"}),
- Add gestures to your
libinput-gestures.conf
# Awesome Wm gestures
# Show currently open windows in one view
gesture swipe up 3 xdotool key super+a
# Show only the window in focus
gesture swipe down 3 xdotool key super+m
# Change to left desktop
gesture swipe left 3 xdotool key super+Right
# Change to right desktop
gesture swipe right 3 xdotool key super+Left
-
Start gesture recognition
libinput-gestures-setup start
-
Swipe with three fingers into all directions
~/.config/awesome/rc.lua