segunda-feira, 21 de junho de 2021

Open your applications menu from the dock on linux

After installing Ubuntu Mate and customizing it with some themes, icons and a dock (Plank), i realized that i couldn't access the applications menu (Brisk) neither find a easy tutorial for doing it, so these are the steeps i did for getting it. First you'll need "xdotool", you can install it in Ubuntu based distros on terminal with:

sudo apt install xdotool

Create your .desktop entry in /usr/share/applications. With nano you can run the command below to create the file on the correct place:

sudo nano /usr/share/applications/menu.desktop

Edit the below entry parts that suits your computer configuration, like the menu, the key command and the icon and paste in the nano terminal you opened before.

[Desktop Entry]
Encoding=UTF-8
Name=menu
Comment=menu
X-GNOME-FullName=Brisk Menu
Exec=xdotool key super      
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/usr/share/icons/Numix-Circle/48/apps/atomic_menu.svg
Categories=Menu;
MimeType=
StartupNotify=true

Use Ctrl + O to save and Ctrl + X to exit.


 

Create your plank dock entry in ~/.config/plank/dock1/launchers/, you can use nano and run:

nano ~/.config/plank/dock1/launchers/menu.dockitem

and copy/paste the entry:

[PlankItemsDockItemPreferences]
Launcher=file:///usr/share/applications/menu.desktop


If you're usint tint2 you can add with: 

launcher_item_app = /usr/share/applications/menu.desktop

Font: https://forums.bunsenlabs.org/viewtopic.php?id=247