So I realize I"m talking to myself, but the code here in awful.utils
appears to be incorrect

function util.geticonpath(iconname, exts, dirs, size)
    exts = exts or { 'png', 'gif' }
    dirs = dirs or { '/usr/share/pixmaps/' }
    for _, d in pairs(dirs) do
        for _, e in pairs(exts) do
            local icon
            if size then
                icon = string.format("%s%ux%u/%s.%s",
                       d, size, size, iconname, e)
                if util.file_readable(icon) then
                    return icon
                end
            end
            icon = d .. iconname .. '.' .. e
            if util.file_readable(icon) then
                return icon
            end
        end
    end
end

the string.format of icon paths should be as follows

for gnome / oxygen:
/usr/share/icons/gnome/32x32/apps/iconname.extension
so thats string.format("%s%ux%u/apps/%s.%s",...

However I use Faenza (a popular theme, which uses the following folder
order...

/usr/share/icons/Faenza/apps/32/iconname.extension
so thats string.format("%s/apps/%u/%s.%s",...

I believe the gnome/oxygen icon path is more popular though.

lastly another question, do we only want to look in the apps folder?
or do you also want to look at actions,  categories,  emblems,
mimetypes  status, devices,  extras, places, stock??

Thanks...

H


On 04/07/2014 11:48 AM, Wei Peng wrote:
> Hi All,
> 
> My v3.5.2+ based config with *persistent dynamic tagging* (inspired by
> the fine Shifty) is released. One thing of note (comparing with other
> fine configs) is the accompanied doc in the form of github README.md.
> 
> Comments welcomed:
> https://github.com/pw4ever/awesome-wm-config
> 
> It is a full config, so you can just clone it to $HOME/awesome and run:
> 
> cd $HOME/.config && git clone
> https://github.com/pw4ever/awesome-wm-config.git awesome
> 
> If you are running Arch Linux, you can even find all the dependencies there:
> 
> sudo pacman -S --needed --noconfirm \
>          feh dex screenfetch scrot xcompmgr hsetroot \
>          alsa-utils xorg-xbacklight cheese mpd mpc \
>          xscreensaver networkmanager network-manager-applet sakura arandr \
>          xfce4-goodies gksu \
>          gvim emacs firefox chromium
> 
> Wei.



-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to