Skip to content

Instantly share code, notes, and snippets.

@erikzenker
Last active May 4, 2024 17:45
Show Gist options
  • Save erikzenker/fc0c2ee403153be95f7c928e974b5fe5 to your computer and use it in GitHub Desktop.
Save erikzenker/fc0c2ee403153be95f7c928e974b5fe5 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

@graphicmist
Copy link

Where is this file rc.lua?

@caliarch
Copy link

caliarch commented May 4, 2024

Where is this file rc.lua?

~/.config/awesome/rc.lua

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