The launchbar

As you’ve probably noticed there is a launch bar in the bmpanel2. But there is no information about how you can use it. And there are reasons for that. I did this widget as an experimental feature and currently each time you need to change items on the launchbar you have to restart the panel. It’s because there is a lack of “reload config” feature and eventually I want to fix this. The other problem is that the cairo has support only for “png” images out of the box, so.. icons on the launchbar can be loaded only from files with that format. If these two things is ok for you, well, there are no more reasons why you should wait and don’t use launchbar.

But wait, you don’t know how you can use it 😀 And here is a tutorial for you.

1. First thing you need is the “launchbar” widget in theme. You can copy your theme to the HOME dir (by default its: ~/.local/share/bmpanel2/themes, you can use “bmpanel2 –list” to see exact locations) and then you need to add the widget, it has only one parameter and it is the icon size:


launchbar
	icon_size 20 20

2. Then you need a config file, usually it is this file: “~/.config/bmpanel2/bmpanel2rc”. And this is mine with the items on the toolbar you saw on the youtube video:


theme xsocam_dark

launchbar
	exec urxvt
		icon /usr/share/pixmaps/gnome-term.png
	exec firefox
		icon /usr/share/pixmaps/firefox.png
	exec blender
		icon /usr/share/pixmaps/blender.png
	exec urxvt -e htop
		icon /usr/share/pixmaps/htop.png
	exec gvim
		icon /usr/share/pixmaps/gvim.png

3. And that’s it.. now you can use the launch bar. 😀

Advertisements

13 Responses to “The launchbar”

  1. Matt Says:

    Hello reader.
    If this blog post was unclear and you’re not sure how to enable the launchbar, look no further. I will give you a brief description on what to do 🙂

    Step 1:
    Open the theme file bmpanel2 loads on startup.
    e.g. The file I opened was /usr/local/share/bmpanel2/themes/muin/theme

    Step 2:
    Place this code on a new line after the ‘theme’ paragraph

    
    launchbar
    	icon_size 19 19
    

    Step 3:
    Close that file. And open I new file called 'bmpanel2rc' located in ~/.config/bmpanel2/
    Now add (Replacing the icon image and program to execute accordingly)

    
    launchbar
    	exec firefox
    		icon /usr/share/pixmaps/firefox.png
    	exec gvim
    		icon /usr/share/pixmaps/gvim.png
    

    Now save the file and start bmpanel.
    bmpanel2 --theme=/usr/local/share/bmpanel2/themes/muin

  2. richard Says:

    awesome! is bmpanel2 as good as finnished now? 😉

  3. toketin Says:

    hi, i’ve tried bmpanel2 and it’s really cool also the launchbar, i’ve only an ask, i’ve placed my launchbar between the pager and the taskbar, if i would like to have a launcher near the clock how can i do?
    Last thing, if you could implement the “need attention” to the panel in order to have flashing icon on the taskbar when for exampel you’re in a chat, it would be fantastic 🙂
    Thanks

    • nsf Says:

      “Needs attentions” feature in the issue tracker already. I’ll do it someday.

      When you’re placing launchbar widget in the theme file, it’s position in the file defines the position on the panel. If you want it near the clock then simply put it between taskbar and clock, or right after clock.

  4. toketin Says:

    but i want only a launcher near the clock the other are right between the pager and the taskbar, how can i do?
    if i put near the clock in theme config file another launchbar line, it gives me two same launchbar instead i would like only a launcher near it

    • nsf Says:

      Well, you can’t. As I said in this post and some time ago in the older post. The launch bar is an experimental feature, I didn’t think about its actual usage. And for cases when you want two launch bars it simply doesn’t ready.

  5. toketin Says:

    ok thanks, sorry but how can i remove seconds from the clock?

  6. toketin Says:

    i’ve set “time_format %H:%M” in clock’s part in the theme config file but it still shows the seconds

  7. toketin Says:

    ok solved, thanks 🙂

  8. Arthur Murgatroyd Says:

    Thanks to the launchbar feature, it is now possible to add a menu to bmpanel2.

    launchbar
    exec myGtkMenu /etc/myGtkMenurc
    icon /usr/local/X11R6/share/pixmaps/misc/menu.png


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: