Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I hope this thread is in the right section, if not, mods please move to the correct section.
I'm on Ubuntu (crunchbang actually) 9.04, and I've ventured to the world of the tiling WMs. Specifically, Awesome. I used 2.3.4 for quite a while, but have recently upgraded to 3.4.1. I've managed to get the vicious widgets working to display network, cpu, mem, etc., but the one thing that is driving me crazy is the statusbar icons.
to avoid the tl,dr;
Is there anyway to turn off the program icons in the status bar for the open programs? i.e. terminal, firefox, etc.
Ive googled as well as I can with no luck, and the awesome wiki for this seems to be outdated, as its suggestion bricks my awesome config. Any help is greatly appreciated.
indeed the wiki is outdated for this. AFAIK there's no more option to disable the icons.
But awesome being easily modified :
Let's add that option !
Apply this patch to "/usr/share/awesome/lib/awful/widget/tasklist.lua"
Code:
--- tasklist.old 2010-05-29 11:34:45.816804701 +0200
+++ tasklist.lua 2010-05-29 11:34:45.816804701 +0200
@@ -95,6 +95,10 @@
local text = "<span font_desc='"..font.."'>"
local name
local status_image
+ local c_icon
+ if not args.hide_icon then
+ c_icon = c.icon
+ end
if client.floating.get(c) and floating_icon then
status_image = capi.image(floating_icon)
end
@@ -120,7 +124,7 @@
text = text .. name
end
text = text .. "</span>"
- return text, bg, status_image, c.icon
+ return text, bg, status_image, c_icon
end
--- Return labels for a tasklist widget with clients from all tags and screen.
The place to place it is where is has to go. You don't place the patch in the file, you have to apply it.
You can use the "patch" command for that, or understand the notation :
Code:
@@ -95,6 +95,10 @@
local text = "<span font_desc='"..font.."'>"
local name
local status_image
+ local c_icon
+ if not args.hide_icon then
+ c_icon = c.icon
+ end
if client.floating.get(c) and floating_icon then
status_image = capi.image(floating_icon)
end
that tells you to look near line 95 and around that text, add the lines that are marked with '+'.
Code:
@@ -120,7 +124,7 @@
text = text .. name
end
text = text .. "</span>"
- return text, bg, status_image, c.icon
+ return text, bg, status_image, c_icon
end
tells you to change the line "return text, bg, status_image, c.icon" by the one marked with the '+'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.