{"id":518,"date":"2011-07-27T13:52:48","date_gmt":"2011-07-27T20:52:48","guid":{"rendered":"http:\/\/albertomilone.com\/wordpress\/?p=518"},"modified":"2011-07-27T13:52:48","modified_gmt":"2011-07-27T20:52:48","slug":"appindicator-for-hamster-part-2","status":"publish","type":"post","link":"https:\/\/albertomilone.com\/blog\/appindicator-for-hamster-part-2\/","title":{"rendered":"Appindicator for Hamster part 2"},"content":{"rendered":"<p><!-- \t\t@page { size: 21.59cm 27.94cm; margin: 2cm } \t\tP { margin-bottom: 0.21cm } \t\tA:link { so-language: zxx } -->This week I&#8217;m supposed to be on holiday but I decided to spend some time on my appindicator for Hamster. To be honest, though, a merge request on github from Izidor Matu\u0161ov, together with our discussion in the merge review thread, was what made me want to focus on hamster again. He provided a light monochrome icon, based on the original icon, (to use with the Ambiance theme) and some code to switch icons when the indicator requires attention. I worked more on the light icon and made a dark variant for the Radiance theme, so that we finally have monochromatic icons for hamster. Although icon design is definitely not my field, I&#8217;m quite happy with the results (help is always welcome though).<\/p>\n<p><a href=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-inactive-dark.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-519\" title=\"hamster-inactive-dark\" src=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-inactive-dark.png\" alt=\"\" width=\"104\" height=\"23\" \/><\/a> <a href=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-inactive-light.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-520\" title=\"hamster-inactive-light\" src=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-inactive-light.png\" alt=\"\" width=\"103\" height=\"24\" \/><\/a><\/p>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\">The main problem I wanted to solve was to allow users to see when hamster has an active task, without having to click on the indicator. I implemented two solutions but I enabled only one by default:<\/p>\n<ul>\n<li>I added a slight \tblue glow (which you can disable) to the icon so that you can see \twhen there is an active task in hamster.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-dark.png\"><img loading=\"lazy\" decoding=\"async\" title=\"hamster-active-dark\" src=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-dark.png\" alt=\"\" width=\"102\" height=\"23\" \/><\/a><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><br \/>\n<a href=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-light.png\"><img loading=\"lazy\" decoding=\"async\" title=\"hamster-active-light\" src=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-light.png\" alt=\"\" width=\"106\" height=\"24\" \/><\/a><\/p>\n<ul>\n<li>I made it possible \tto have a text label (disabled by default) with the current activity \tbeside the icon. This is quite similar to how the old gnome applet \tused to work. You can also set the maximum length of this label (the \tdefault is 20 characters).<\/li>\n<\/ul>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\"><a href=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-label-dark.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-521 alignnone\" title=\"hamster-active-label-dark\" src=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-label-dark.png\" alt=\"\" width=\"283\" height=\"25\" \/><\/a><\/p>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\"><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\"><a href=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-label-light.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-522 alignnone\" title=\"hamster-active-label-light\" src=\"http:\/\/albertomilone.com\/wordpress\/wp-content\/uploads\/2011\/07\/hamster-active-label-light.png\" alt=\"\" width=\"286\" height=\"25\" \/><\/a><\/p>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\">Finally, as promised, I packaged the indicator and set up <a href=\"https:\/\/launchpad.net\/~albertomilone\/+archive\/hamster-indicator\">a PPA with packages for both Natty and Oneiric<\/a>.<\/p>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\"><strong>Note: in Oneiric you&#8217;ll also have to install my patched hamster-applet, otherwise hamster-applet will crash looking for gnomeapplet (which we no longer ship).<\/strong><\/p>\n<p><span style=\"font-family: 'Times New Roman'; line-height: normal; font-size: medium;\"> <\/span><\/p>\n<p style=\"display: inline !important;\">If you want to configure the indicator you can either open gconf-editor and look for \/apps\/hamster-indicator\/ or follow these steps from the command line:<\/p>\n<p style=\"display: inline !important;\"><strong>To enable\/disable the icon glow:<\/strong><\/p>\n<pre>$ gconftool-2 --set \"\/apps\/hamster-indicator\/icon_glow\" --type bool \"false\"\n$ gconftool-2 --set \"\/apps\/hamster-indicator\/icon_glow\" --type bool \"true\"<\/pre>\n<p><strong>To enable\/disable the activity label:<\/strong><\/p>\n<pre>$ gconftool-2 --set \"\/apps\/hamster-indicator\/show_label\" --type bool \"true\"\n$ gconftool-2 --set \"\/apps\/hamster-indicator\/show_label\" --type bool \"false\"<\/pre>\n<p><strong>To set the maximum label length:<\/strong><\/p>\n<pre>$ gconftool-2 --set \"\/apps\/hamster-indicator\/label_length\" --type int \"20\"<\/pre>\n<p><strong>EDIT: you can launch the indicator with the following command:<\/strong><\/p>\n<pre>$ hamster-indicator<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This week I&#8217;m supposed to be on holiday but I decided to spend some time on my appindicator for Hamster. To be honest, though, a merge request on github from Izidor Matu\u0161ov, together with our discussion in the merge review thread, was what made me want to focus on hamster again. He provided a light <a class=\"read-more\" href=\"https:\/\/albertomilone.com\/blog\/appindicator-for-hamster-part-2\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6,9],"tags":[],"class_list":["post-518","post","type-post","status-publish","format-standard","hentry","category-planet","category-python","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/posts\/518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/comments?post=518"}],"version-history":[{"count":0,"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/posts\/518\/revisions"}],"wp:attachment":[{"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/media?parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/categories?post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/albertomilone.com\/blog\/wp-json\/wp\/v2\/tags?post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}