Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Created August 29, 2023 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notpushkin/9a14d5a20442bf214995f8852a130c7a to your computer and use it in GitHub Desktop.
Save notpushkin/9a14d5a20442bf214995f8852a130c7a to your computer and use it in GitHub Desktop.
fusuma macos-like expose gestures for KDE
#!/bin/bash
if qdbus org.kde.KWin /Effects activeEffects | grep -q 'windowview'; then
ydotool click 0xC0
fi
swipe:
3:
up:
command: '/home/ale/.local/share/ale-scripts/present-desktop.sh'
down:
command: '/home/ale/.local/share/ale-scripts/click-if-in-windowview.sh'
threshold:
swipe: 1
interval:
swipe: 1
#!/bin/bash
if ! qdbus org.kde.KWin /Effects activeEffects | grep -q 'windowview'; then
qdbus org.kde.kglobalaccel /component/kwin invokeShortcut ExposeAll
fi
@notpushkin
Copy link
Author

(add /usr/bin/fusuma and /usr/bin/ydotoold to autostart)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment