Created
March 8, 2025 18:17
-
-
Save icecreammatt/393612fd2cd8e7743bf5e54bdd62f372 to your computer and use it in GitHub Desktop.
Toggle touchpad while typing for Asahi Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
res=$(qdbus org.kde.kglobalaccel /org/kde/KWin/InputDevice/event0 org.freedesktop.DBus.Properties.Get org.kde.KWin.InputDevice disableWhileTyping) | |
set_value=false | |
if [[ "$res" == "false" ]]; then | |
set_value=true | |
fi | |
qdbus org.kde.kglobalaccel /org/kde/KWin/InputDevice/event0 org.freedesktop.DBus.Properties.Set org.kde.KWin.InputDevice disableWhileTyping $set_value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment