Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 1538  / 2 Years ago, sun, september 25, 2022, 5:13:14

Alt is used to open the HUD in 12.04.



I'd like to use alt to execute a second action as well as open the HUD by having alt execute an executable script.



So Alt = script, that does HUD and other stuff.



I know how to do all of this except call the HUD from the command line.


More From » bash

 Answers
4

The HUD service is available as a service on DBus, so if you'd just like to poll it for information you can do that with a gdbus command, like this.



gdbus call --session --dest com.canonical.hud --object-path /com/canonical/hud --method com.canonical.hud.StartQuery "my query" 5


If you're trying to get Unity to show the HUD prompt you can do that with the XTest extension using xdotool like this:



xdotool key alt


If you're interested in playing with HUD it's probably best to use the hud-gtk tool which is in the indicator-appmenu-tools package.


[#38402] Monday, September 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sipwing

Total Points: 245
Total Questions: 100
Total Answers: 118

Location: Aland Islands
Member since Thu, Oct 22, 2020
4 Years ago
sipwing questions
Sun, May 29, 22, 22:00, 2 Years ago
Fri, Jun 24, 22, 08:46, 2 Years ago
Fri, Dec 23, 22, 00:04, 1 Year ago
;