Skip to content

Instantly share code, notes, and snippets.

@rockavoldy
Created October 19, 2020 13:15
Show Gist options
  • Save rockavoldy/2e56608b36a2c24ea18ae0278db90a34 to your computer and use it in GitHub Desktop.
Save rockavoldy/2e56608b36a2c24ea18ae0278db90a34 to your computer and use it in GitHub Desktop.
Install gebaar-libinput for Fedora

Gebaar-libinput on Fedora

Repository: https://github.com/NICHOLAS85/gebaar-libinput

Pre-requisites

  1. Install cmake, make, and compiler $ sudo dnf install cmake make gcc gcc-c++
  2. Install devel packages for library needed to compile $ sudo dnf install libinput-devel systemd-devel

How to build

  1. Clone repository $ git clone https://github.com/NICHOLAS85/gebaar-libinput
  2. $ cd gebaar-libinput
  3. $ git submodule update --init
  4. $ mkdir build && cd build
  5. $ export CXX=/usr/bin/gcc-c++
  6. $ cmake ..
  7. $ make -j$(nproc)
  8. $ sudo make install
  9. $ mkdir -p ~/.config/gebaar
  10. $ nano ~/.config/gebaar/gebaard.toml
  11. Copy template from file gebaard-example.toml
  12. Config what command to run when gestures fired.
  13. add $USER to input group $ sudo usermod -aG input $USER
  14. add command gebaard -b to run at startup
  15. Reboot
[[swipe.commands]]
fingers = 3
type = "GESTURE" # (TOUCH|GESTURE) (default GESTURE)
# Entries below run string based on direction
# left_up = string
# right_up = string
up = "ydotool key Super+a" # string
# left_down = string
# right_down = string
down = "ydotool key Super+s" # string
left = "ydotool key alt+Left" # string
right = "ydotool key alt+Right" # string
[[pinch.commands]]
fingers = 2 # integer (default 2)
type = "CONTINUOUS" # string (ONESHOT|CONTINUOUS) (default ONESHOT)
# Entries below run string based on direction
in = "ydotool key ctrl+=" # string
out = "ydotool key ctrl+-" # string
# rotate_left = # string
# rotate_right = # string
[switch.commands]
# Entries below run string when 2 in 1 devices switch modes
# laptop = string
# tablet = string
[settings]
pinch.threshold = 0.25 # double (default 0.25)
rotate.threshold = 20 # double (default 20)
interact.type = "GESTURE" # string (TOUCH|GESTURE|BOTH) (default automatic)
gesture_swipe.threshold = 0.5 # double (default 0.5)
gesture_swipe.one_shot = true # bool (default true)
gesture_swipe.trigger_on_release = true # bool (default true)
touch_swipe.longswipe_screen_percentage = 70 # double (default 70)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment