Skip to content

Instantly share code, notes, and snippets.

@icecreammatt
Created March 8, 2025 18:17
Show Gist options
  • Save icecreammatt/393612fd2cd8e7743bf5e54bdd62f372 to your computer and use it in GitHub Desktop.
Save icecreammatt/393612fd2cd8e7743bf5e54bdd62f372 to your computer and use it in GitHub Desktop.
Toggle touchpad while typing for Asahi Linux
#!/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