BuddiesOfBudgie / budgie-desktop

Budgie Desktop is a familiar, modern desktop environment.
https://buddiesofbudgie.org
GNU General Public License v2.0
963 stars 50 forks source link

Add hotkeys for applications in Icon Task List #34

Open zmenciso opened 2 years ago

zmenciso commented 2 years ago

Budgie Version 10.5.3

Use-cases

I would like to be able to press hotkeys to select applications from the Icon Task List. If that application is a favorite and not already running, launch it. If the application is already running with only one window, switch to it. If that application is running with more than one window, show the user the various windows and allow them to select one.

Proposal

Add individual hotkeys for each application in the Icon Task List, up to a max number. These could be set in the applet configuration page, like: Function Binding
Switch to application 1 Super+1
Switch to application 2 Super+2
Switch to application 3 Not bound
Switch to application 4 Not bound

etc.

References

None to my knowledge, but I only recently switched to Solus and Budgie.

rodrigofarias77 commented 2 years ago

My poor man's implementation is to make Super+1 switch to or open Terminal with something like this:

xdotool search --onlyvisible --class gnome-terminal windowactivate || gtk-launch org.gnome.Terminal
JoshStrobl commented 2 years ago

Add individual hotkeys for each application in the Icon Task List, up to a max number.

And how would you handle this or differentiate between multiple icon tasklists, in the event of them being able to be on multiple panels? Individual IconTasklists can have their own pinned launchers configuration.

zmenciso commented 2 years ago

Hmmm I hadn't considered the possibility of having different pinned launchers. I typically use the Icon Task List without any pinned launchers (just as a way to see what applications are running on a given workspace).

fossfreedom commented 2 years ago

spitball of an idea - maybe one way is to designate one icon list as "primary" - there can only be one primary; maybe a tickbox on an icon task list settings - default ticked for the first icon-task-list. If the primary is removed then the end-user has to manually tick the next "primary".