Browse Source

Work on sway gestures config

master
Daniel Flanagan 3 months ago
parent
commit
2a65aab515
Signed by: lytedev GPG Key ID: 5B2020A0F9921EF4
4 changed files with 10 additions and 35 deletions
  1. +1
    -1
      common/bin/dotfiles-link-environments
  2. +4
    -3
      host/laptop/third/sway/config
  3. +0
    -31
      os/linux/libinput/gestures.conf
  4. +5
    -0
      os/linux/libinput/sway-gestures.conf

+ 1
- 1
common/bin/dotfiles-link-environments View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env fish
set dfp (realpath (dirname (status -f))/../..)
function files


+ 4
- 3
host/laptop/third/sway/config View File

@ -1,10 +1,11 @@
exec libinput-gestures -c $HOME/.config/lytedev-dotfiles/apps/de/libinput/sway-gestures.conf
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK DBUS_SESSION_BUS_ADDRESS
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK DBUS_SESSION_BUS_ADDRESS
exec libinput-gestures -c $DOTFILES_PATH/os/linux/libinput/sway-gestures.conf
bindswitch lid:toggle exec swaylock
input type:keyboard {
xkb_options ctrl:nocaps
}
input type:touchscreen {
events disabled
}

+ 0
- 31
os/linux/libinput/gestures.conf View File

@ -1,33 +1,2 @@
gesture swipe left 3 bspc desktop -f next
gesture swipe right 3 bspc desktop -f prev
gesture swipe up 3 xdotool key XF86AudioRaiseVolume
gesture swipe down 3 xdotool key XF86AudioLowerVolume
gesture swipe left 4 xdotool key alt+Right
gesture swipe right 4 xdotool key alt+Left
# GNOME SHELL open/close overview (works for GNOME on Xorg only)
#gesture pinch in xdotool key super+s
#gesture pinch out xdotool key super+s
# KDE Plasma open/close overview
#gesture pinch in xdotool key ctrl+F9
#gesture pinch out xdotool key ctrl+F9
# Optional extended pinch gestures:
#gesture pinch clockwise <whatever command>
#gesture pinch anticlockwise <whatever command>
###############################################################################
# You can set a minimum travel distance threshold before swipe gestures
# are actioned using the swipe_threshold configuration command.
# Specify this value in dots. The default is 0.
# E.g. set it to 100 dots with "swipe_threshold 100".
swipe_threshold 25
###############################################################################
# You can set a timeout on gestures from start to end. The default is
# the value commented below. It can be any value in float secs >= 0.
# 0 = no timeout. E.g. set it to 2 secs with "timeout 2".
timeout 0.9

+ 5
- 0
os/linux/libinput/sway-gestures.conf View File

@ -1,5 +1,10 @@
swipe_threshold 25
timeout 0.9
# TODO: sway gestures?
gesture swipe left 3 swaymsg workspace back_and_forth
gesture swipe right 2 swaymsg seat seat0 cursor press BTN_EXTRA && swaymsg seat seat0 cursor release BTN_EXTRA
gesture swipe left 2 swaymsg seat seat0 cursor press BTN_SIDE && swaymsg seat seat0 cursor release BTN_SIDE

Loading…
Cancel
Save