Skip to content

Instantly share code, notes, and snippets.

@UndeadDevel
Last active March 3, 2024 21:34
Show Gist options
  • Save UndeadDevel/8501e82a534e5daa2ac60e36945167b9 to your computer and use it in GitHub Desktop.
Save UndeadDevel/8501e82a534e5daa2ac60e36945167b9 to your computer and use it in GitHub Desktop.
QubesOS: Open the new App Menu via a keyboard shortcut and move the mouse out of the way if necessary
#!/bin/bash
eval $(xdotool getmouselocation --shell)
xdotool mousemove 5 5
gdbus call --session --dest org.qubesos.appmenu --object-path "/org/qubesos/appmenu" --method org.freedesktop.Application.Activate "{}" &&
xdotool mousemove 100 125 mousemove 130 130 mousemove restore # fixes issue #9006
sleep 0.25
if [ $X -lt 720 ]; then
X=720 # prevent the mouse from selecting items in the app menu when opening it with the keyboard (issue #8789)
fi
xdotool mousemove $X $Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment