Quick launch bar widget/3.5

Description
Here is a widget that allows you to put application shortcuts on your taskbar.

Though it is not as dynamic as in Gnome or KDE (you cannot just drag-and-drop a shortcut on the panel), you still don't have to modify your config every time you want to add new shortcut. The widget uses the folder which you specify to find all *.desktop files in it and show them on the taskbar. .desktop format was picked so former Gnome\KDE users could just specify their /home/username/Desktop folder and all the shortcuts from there would appear on the panel.

.desktop file consists of key=value pairs separated by new lines. Here is the example of calculator.desktop file [Desktop Entry] Name=Calculator Exec=gcalctool Icon=/usr/share/icons/gnome/24x24/apps/calc.png Position=1 #and so on

It is very simple, it contains the name of application (Name), command to run it (Exec), icon to show on the taskbar (Icon) and it's position relatively to other shortcuts. Widget only uses three fields: Exec, Icon and Position (optional), so you can just write a text file with these fields and save it as something.desktop.

''Note: original .desktop files (that Gnome\KDE use) do not contain the field "Position", you should append it by yourself. Although this field is optional, if you don't specify it the shortcuts will simply be appended to the end of the list.

''Hint: you don't have to rewrite all positions if you want to insert a shortcuts between two others. You can use non-integer number as Position value for this. For example, if you have two shortcuts with Position 2 and 3 respectively, put in the third shortcut Position=2.5 and it will go between these two.''

Howto

 * First, as I said earlier, you have to create a folder where you will keep your .desktop files. There could be other files, the widget would not crash because of them.


 * Download launchbar.lua file from here.


 * Open your rc.lua put the following code somewhere:

local launchbar = require('launchbar') local mylaunchbar = launchbar("/path/to/folder/with/shortcuts/")


 * Put mylaunchbar on the wibox.


 * That's all. Just reload your awesome and launch bar will appear.

 For any questions mail me at yakushev.alex{ear}gmail.com