Scripting

Devils Pie In Cinnamon

Taskbar in Cinnamon with Chromium apps

I found that using Cinnamon desktop when running a Chromium app (in my case Wunderlist), the taskbar would remain using the blue icon regardless of what I'd set up in the launcher.

Using xseticon also does not work. The issue is that the 'Class' attibute of the window overrides whatever you set for the icon itself so it remains the default Chromium one. Therefore, the fix is to set both the class and the icon.

In Bash:

#!/bin/bash
window_id=$(xdotool search -name wunderlist)
xdotool set_window --class 'wunderlist' $window_id
xseticon -id $window_id /home/jezm/bin/pixmaps/wunderlist.png

In Devilspie:

(if
    (contains (application_name) "Wunderlist")
    (begin
                        (spawn_sync(str "xdotool set_window --class 'wunderlist' " (window_xid) ))
                        (spawn_sync(str "xseticon -id " (window_xid) " /home/jezm/bin/pixmaps/wunderlist.png" ))
    )
)