You are not logged in.

#1 2015-05-21 06:03:24

Talk2arpan
Member
From: India
Registered: 2015-05-21
Posts: 2
Website

How do i set a custom icon of any client in awesomeWM v3.5.6?

if (c.class == "Google-chrome") then
     c.icon = capi.image ( "/home/arpan/.config/awesome/icons/chrome.png" )
end

I tried it to my tasklist.lua but I always got an error i.e attempt to call field 'image' (a nil value)

{ rule = { class = "Google-chrome" },
  properties = { icon = beautiful.icon_chrome } },

Then I find another way to use properties icon in awful.rules and it worked but didn't change the icon instead it disabled the icon of that client.
Any solution why it is not working please.. neutral


hope u like it.. awesome-anxiety

Offline

#2 2015-05-21 11:48:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: How do i set a custom icon of any client in awesomeWM v3.5.6?

I don't use awesomeWM, but generally it has pretty good documentation - yet I can't find any references for the methods you are attempting to use to set the icon.  Has that worked before?  Where did you get this code?  Any references for this?  The only other example of this type of code is your identical question on S.O.

If it were me I wouldn't try to do this through the WM, but through other mechanisms: the first would be desktop files.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-05-21 12:08:50

esa
Member
Registered: 2011-12-29
Posts: 143
Website

Re: How do i set a custom icon of any client in awesomeWM v3.5.6?

You could add, either in a theme or in the rc itself:

fedora_icon = wibox.widget.imagebox()
fedora_icon:set_image("/etc/favicon.png")

And then:

...
mymainmenu = awful.menu({ items = { 	{ "awesome", myawesomemenu, beautiful.awesome_icon },
		                        { "system config", menusystem, beautiful.fedora_icon},
					...

Hope this helps

@ Trilby:
AwesomeWM is LUA based, and doesnt read .desktop files (nativly).

Last edited by esa (2015-05-21 12:10:43)


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

#4 2015-05-21 15:51:54

Talk2arpan
Member
From: India
Registered: 2015-05-21
Posts: 2
Website

Re: How do i set a custom icon of any client in awesomeWM v3.5.6?

I got this code from here @Trilby:
https://bbs.archlinux.org/viewtopic.php … 3#p1087653
http://habrahabr.ru/post/233085/ and http://www.linux.org.ru/forum/desktop/11242517
what u r saying is quit a lengthy procedure changing icon for each(.desktop file)

i think it works on earlier versions of awesome but not in 3.5.6
want to set custom icon to my tasklist because i don't like many icon that comes by default for the clients

@esa: i'm not talking about setting icon in menu

Last edited by Talk2arpan (2015-05-21 16:31:38)


hope u like it.. awesome-anxiety

Offline

Board footer

Powered by FluxBB