Skip to content

Instantly share code, notes, and snippets.

@jvegaf
Forked from erikzenker/AwesomeGestures.md
Created September 11, 2022 02:51
Show Gist options
  • Save jvegaf/167f2a6ffc0079c85afdfd0d82c1b55f to your computer and use it in GitHub Desktop.
Save jvegaf/167f2a6ffc0079c85afdfd0d82c1b55f to your computer and use it in GitHub Desktop.
OSX like gesture for arch linux onn awesome windowmanager

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

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment