Added Gestures info

This commit is contained in:
itdominator 2023-01-25 00:08:49 -06:00
parent 9148643d4b
commit 4f25c15bb2
8 changed files with 2165 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class Settings:
settings.set_property('enable-accelerated-2d-canvas', True) settings.set_property('enable-accelerated-2d-canvas', True)
settings.set_property('auto-load-images', True) settings.set_property('auto-load-images', True)
settings.set_property('enable-media-capabilities', True) settings.set_property('enable-media-capabilities', True)
# settings.set_property('enable-media', True)
settings.set_property('enable-media-stream', True) settings.set_property('enable-media-stream', True)
settings.set_property('enable-mediasource', True) settings.set_property('enable-mediasource', True)
settings.set_property('enable-encrypted-media', True) settings.set_property('enable-encrypted-media', True)

View File

@ -0,0 +1,10 @@
Here are some commonly used, DE-specific commands:
## Budgie Desktop
* Open run dialog: `nohup budgie-run-dialog`
* Open Raven notification bar: `dbus-send --session --type=method_call --dest=org.budgie_desktop.Raven /org/budgie_desktop/Raven org.budgie_desktop.Raven.SetExpanded boolean:'true'`
* Close Raven notification bar: `dbus-send --session --type=method_call --dest=org.budgie_desktop.Raven /org/budgie_desktop/Raven org.budgie_desktop.Raven.SetExpanded boolean:'false'`
## GNOME
## KDE

View File

@ -0,0 +1,3 @@
You can use the `xdotool` tool to simulate keyboard input, though this feature is *totally unsupported* in Wayland session. The tool also offers other features, like focusing specific windows (still Xorg only).
Please refer to Xdotool's manpages using `man xdotool`.

10
src/TXTs/Gestures/Home.md Normal file
View File

@ -0,0 +1,10 @@
# Gestures Wiki
Hello World!
Pages
* [Desktop specific commands](desktop-specific-commands)
* [Launching GUI apps](launching-gui-apps)
* [Executing keyboard shortcuts](executing-keyboard-shortcuts)
* [3-finger drag workarounds](three-finger-drag-on-linux)
* [Xdotool equivalent tools for Wayland keystroke emulation](xdotool-equivalent-tools-for-Wayland-keystroke-simulation)
* [Full list of Xdotool key codes](xdotool-list-of-key-codes)

View File

@ -0,0 +1,3 @@
As libinput-gestures pipes commands to execute, opening GUI programs without blocking the pipe has to be done with `nohup` before the binary name:
`nohup appname`

View File

@ -0,0 +1,5 @@
While the feature is currently *not supported* by libinput-gestures (which has a somewhat different aim), there are other ways to do that on Linux.
Here are some resources you might want to check out:
* https://github.com/quadpixels/three-finger-dragging
* http://martys.typepad.com/blog/2015/08/3-finger-drag-on-linux.html

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
As xdotool doesn't support Wayland due to their strict security policies, keystroke inputs require root privileges and some workarounds:
* The **best candidate looks to be the Python-based [injectinput](https://github.com/meeuw/injectinput) script by *meeuw***, though still in an early development stage.
* Another Bash solution comes from [this Stack Overflow thread](https://unix.stackexchange.com/questions/381831/keyboard-emulation-in-wayland):
> I'm using this little script. It needs the package evemu installed and sudo-confguration for evemu-event without password-notification. EVDEVICE is the device used to emulate the input. /dev/input/event8 is my keyboard (use sudo evemu-record to find yours)
>
>
> ```
> #!/bin/bash
> # keycomb.sh
> EVDEVICE=/dev/input/event8
>
> for key in $@; do
> sudo evemu-event $EVDEVICE --type EV_KEY --code KEY_$key --value 1 --sync
> done
>
> # reverse order
> for (( idx=${#@}; idx>0; idx-- )); do
> sudo evemu-event $EVDEVICE --type EV_KEY --code KEY_${!idx} --value 0 --sync
> done
> ```
> you can e.g. change a tab with `./keycomb.sh RIGHTCTL PAGEDOWN`.
>
> Please note: This script does no validation on parameters, use with care ;)