0

I would like to add an icon link in the Unity Launcher which opens the application switcher (the one that the keyboard shortcut alt+tab opens). How can I do this?

Edit: I installed xdotools and have attempted make the desktop file.

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=gnome-panel-window-list
Name[en_US]=App Switcher
Exec=sh -c 'xdotool keydown Alt key Tab && sleep 4 && xdotool keyup Alt'
Name=App Switcher
Icon=gnome-panel-window-list

It almost works. The app launcher opens, however, I can't select the open windows.

Edit: The code above works. You just need to use the wheel on the mouse to switch :D

GSM-S
  • 624

2 Answers2

1

You could

  1. create an application launcher that
  2. runs a command which simulates a keyboard combination.
  3. You can then use gsettings to add the launcher to the favourite list.
David Foerster
  • 36,890
  • 56
  • 97
  • 151
0

Install mainmenu application: https://apps.ubuntu.com/cat/applications/precise/alacarte/

Then drag and drop your new launcher from the Unity dash to the Unity bar.

Quentin
  • 1,317