Hello everybody, I am sending a short patch which makes the menubar slightly more configurable, which then makes it more useful in non standard setups. I hope the patch explains it all.
Cheers, Ignas
>From 5c50f97472051216b1ff57a43b609369431988b4 Mon Sep 17 00:00:00 2001 From: "Ignas Anikevicius (gns_ank)" <anikevic...@gmail.com> Date: Thu, 22 Nov 2012 11:11:47 +0000 Subject: [PATCH] Menubar: Expose the wm_name attribute This commit makes it possible to change the wm_name attribute, which means that programs can be shown/hidden according to the wishes of the user. Possible usecase: A user is using Gnome and Awesome together, but sinc wm_name by default is awesome, all the apps shipped with GNOME DE are hidden by default. Changing wm_name attribute in this case would solve the issue. Signed-off-by: Ignas Anikevicius (gns_ank) <anikevic...@gmail.com> --- lib/menubar/utils.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/menubar/utils.lua.in b/lib/menubar/utils.lua.in index 71da5e0..a42d653 100644 --- a/lib/menubar/utils.lua.in +++ b/lib/menubar/utils.lua.in @@ -31,7 +31,7 @@ utils.terminal = 'xterm' local default_icon = nil -- Name of the WM for the OnlyShownIn entry in the .desktop file. -local wm_name = "awesome" +utils.wm_name = "awesome" -- Private section @@ -137,7 +137,7 @@ function utils.parse(file) -- Only show the program if there is no OnlyShowIn attribute -- or if it's equal to 'awesome' - if program.OnlyShowIn ~= nil and program.OnlyShowIn ~= wm_name then + if program.OnlyShowIn ~= nil and program.OnlyShowIn ~= utils.wm_name then program.show = false end -- 1.8.0