Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-12-12 23:44:26

Phillip Bromley
Registered: 2011-03-16
Posts: 38

[Solved] Awesome Window Manager, system tray

I'm using the latest stable #!Crunchbang 64 bit backports edition, and I installed the Awesome Window Manager (my favorite!) which I have used in the past. It works just fine, except the notification area icons which appear in Openbox don't appear in Awesome. Specifically, I would like the NetworkManager icon to work, as well as the volume slider and battery monitor icons. I'm not too concerned about the clipboard manager, but that'd be nice too.

I tried searching the #! forum, to no avail. Thanks in advance for helping me!

EDIT: Solved! See below...

Last edited by Phillip Bromley (2012-12-13 07:17:15)


Help fund CrunchBang, donate to the project!

#2 2012-12-13 00:13:12

Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: [Solved] Awesome Window Manager, system tray

Have you checked the awesome wiki?

This topic mentions a "systray" widget: -- that might be what you are looking for.

And there is this:

awesome wiki wrote:

In GNOME and KDE, the System Tray gives a place to display various items. Awesome doesn't directly have this capability, so some additional programs are needed to achieve this functionality.

It goes on to give some suggestions. I think you could probably even run tint2 (the panel #! uses) if you really want to, but there are several other alternatives.

You might also want to check out this topic, if you have not done so already:

Last edited by pidsley (2012-12-13 00:21:06)


#3 2012-12-13 00:20:36

Phillip Bromley
Registered: 2011-03-16
Posts: 38

Re: [Solved] Awesome Window Manager, system tray

Thanks! I'll check that out, and I'll post back here if I don't have any luck.


#4 2012-12-13 04:40:29

#! CrunchBanger
Registered: 2012-03-07
Posts: 114

Re: [Solved] Awesome Window Manager, system tray

You might also need to start the applets (nm-applet, volumeicon(?),...) with Awesome. See this page.


#5 2012-12-13 06:00:49

Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: [Solved] Awesome Window Manager, system tray

If you just need the systray and not a complete panel...maybe trayer?  ('Tis in the repos.)


#6 2012-12-13 07:16:36

Phillip Bromley
Registered: 2011-03-16
Posts: 38

Re: [Solved] Awesome Window Manager, system tray


From the link to the Awesome Wiki which pidsley provided, I found this page which showed how to execute commands on startup:

I then copied the default rc.lua from /etc/xdg/awesome to ~/.config/awesome (the directory didn't exsist by default, so I created it) and added the following lines to the end of it:

-- Autostart section
-- Blank autostart:
-- awful.util.spawn_with_shell("")
awful.util.spawn_with_shell("nm-applet") -- networkManager applet
awful.util.spawn_with_shell("vlc") -VLC media player
awful.util.spawn_with_shell("fatrat -i") -- Fatrat download manager (with systray only command line switch)
awful.util.spawn_with_shell("volumeicon") -- Volume icon
awful.util.spawn_with_shell("xfce4-power-manager") -- Battery monitor, etc.
awful.util.spawn_with_shell("parcellite") -- clipboard manager

nm-applet, volumeicon, xfce4-power-manager, and parcellite were in the openbox systray by default, and I added VLC media player and fatrat too. All of these programs run in the systray automatically when they run, so all I had to do was set them to run as soon as Awesome started.

The main downside is that if you restart awesome (via mod4 + SHIFT + R, for example), a second instance of each program will open, annoyingly. There are other, more complicated ways to prevent this in the Awesome Wiki page that I linked to above.

Also, VLC media player has a command line switch to open in the systray only, supposedly the "-d" switch, but I had no luck with that. But this thread shows a VLC setting to start VLC in the systray by default:

Here's a screenshot!


Thanks a lot guys! I hope this information helps others around here in the future.


Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: zapp

Debian Logo