Thursday, May 2, 2024
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 5370  / 2 Years ago, mon, august 8, 2022, 3:31:56

I'm trying out Gnome Shell instead of Unity to see if I like it better, and the Unity feature that I miss most is the ability to switch to specific applications using Super+ any number from 1 to 9. Is there any way to add this feature to Gnome Shell?



I could add custom shortcuts using the Gnome Shell System Settings, but those shortcuts would always launch new windows instead of switching to existing ones.


More From » shortcut-keys

 Answers
0

Option 1: Gnome Shell extension: AppKeys



This extension emulates the Unity behavior in Gnome Shell:
https://extensions.gnome.org/extension/413/dash-hotkeys/



Does exactly what is expected and adds some more key bindings, like opening a new window for the application with Super+Shift+[1-9]. Confirmed working in Ubuntu 14.04.2 and Gnome Shell 3.10.4.



Option 2: xbindkeys & wmctrl



While It's not as user-friendly to setup and manage, you can get this kind of functionality in many environments, by using wmctrl and xbindkeys.



Xbindkeys can set to start at login. It will monitor a file called .xbindkeysrc, which can contain lines like this:



#Launch or switch to E-mail
"wmctrl -xa Thunderbird || thunderbird"
Alt + 2

#Launch or switch to Konsole
"wmctrl -xa Konsole || konsole"
Alt + 3

#Launch or switch to IRC client
"wmctrl -xa Xchat || xchat"
Alt + 4


Like Unity, with this recipe you set up a key to switch to an application if it is running, or launch it if is not. I used Alt here, but you could use Mod4 instead, I think.



Option 3: Use workspace-switching shortcuts



Something similar is to assign keyboard shortcuts that switch to specific desktops (or "Workspace"). If you run one application per workspace, then the shortcut effectively switches to that application. Look under Keyboard: Shortcuts: Navigation for the place to set the workspace-switching shortcuts.



Option 4: gnome-shell-extensions-windows-navigator



After installing this Gnome extension, in overlay mode you can hold the ALT key and see a number assigned to each window. You can then press the number to switch the window. More here, including installation instructions.


[#42495] Monday, August 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
repend

Total Points: 195
Total Questions: 113
Total Answers: 107

Location: Nicaragua
Member since Tue, Dec 8, 2020
3 Years ago
;