Merge branch 'master' of ssh://git.lyte.dev:2222/lytedev/dotfiles

This commit is contained in:
Daniel Flanagan 2021-04-14 14:54:05 -05:00
commit c2f89d171d
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
3 changed files with 9 additions and 34 deletions

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
}

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

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