From e97e6a85f2b783923060596c32c10586e0873b89 Mon Sep 17 00:00:00 2001 From: Thiago Sueto Date: Sat, 3 Oct 2020 11:34:21 -0300 Subject: [PATCH] Add instructions for Plasma --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index bb51f9e..4e27f03 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,30 @@ right = "bspc desktop -f next" Add `gebaard -b` to `~/.config/bspwm/bspwmrc` +**KDE Plasma 5** + +Any multiword value (like in some qdbus commands) must have escaped double quotes to work (`\"`). + +Additionally, in some distros (like openSUSE), the `qdbus` command might be named `qdbus-qt5`. +Some navigation-related qdbus commands are provided directly by KWin and can be seen via `qdbus org.kde.KWin /KWin`, +but most shortcuts can be checked with `qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames`. + +For Wayland users, a tool similar to `xdotool` in functionality is [ydotool](https://github.com/ReimuNotMoe/ydotool). + +```toml +[commands.swipe.three] +up = "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"Switch One Desktop Up\"" +down = "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"Switch One Desktop Down\"" +left = "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"Switch One Desktop to the Left\"" +right = "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"Switch One Desktop to the Right\"" + +[commands.swipe.four] +up = "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"Window Maximize\"" +down = "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"Window Minimize\"" +left = "xdotool key alt+Left" +right = "xdotool key alt+Right" +``` + ### State of the project - [x] Receiving swipe events from libinput