-
Notifications
You must be signed in to change notification settings - Fork 0
/
libinput-gestures.conf
65 lines (54 loc) · 2.08 KB
/
libinput-gestures.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Configuration file for libinput-gestures.
# Mark Blakeney, Sep 2015
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
#
# Each gesture line has 3 [or 4] arguments separated by whitespace:
#
# action motion [finger_count] command
#
# where action and motion is either:
# swipe up
# swipe down
# swipe left
# swipe right
# swipe left_up
# swipe left_down
# swipe right_up
# swipe right_down
# pinch in
# pinch out
# pinch clockwise
# pinch anticlockwise
# hold on (hold gesture available since libinput 1.19)
#
# xdotool does not work with native Wayland clients.
##############################################################################
# Do maximize and fullscreen stuff
gesture swipe up 3 hyprctl dispatch fullscreen 1
gesture swipe down 3 hyprctl dispatch fullscreen 1
gesture swipe up 4 hyprctl dispatch fullscreen 0
gesture swipe down 4 hyprctl dispatch fullscreen 0
gesture swipe right 3 hyprctl dispatch layoutmsg cyclenext
gesture swipe left 3 hyprctl dispatch layoutmsg cycleprev
# Browser go forward (works only for Xorg, and Xwayland clients)
gesture swipe left xdotool key alt+Right
# Browser go back (works only for Xorg, and Xwayland clients)
gesture swipe right xdotool key alt+Left
# Example to change audio volume (this works on both Wayland and Xorg):
# Note each swipe only steps volume once.
# swipe up 4 amixer set Master "8%+"
# swipe down 4 amixer set Master "8%-"
###############################################################################
# PINCH GESTURES:
###############################################################################
# close current window
gesture pinch in 4 hyprctl dispatch killactive
gesture pinch out 4 kitty