{"id":463,"date":"2010-09-11T23:16:36","date_gmt":"2010-09-11T21:16:36","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/2010\/09\/11\/configuring-numlock-indicator-in-kde4\/"},"modified":"2010-09-11T23:16:36","modified_gmt":"2010-09-11T21:16:36","slug":"configuring-numlock-indicator-in-kde4","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2010\/09\/11\/configuring-numlock-indicator-in-kde4\/","title":{"rendered":"Configuring numlock indicator in KDE4"},"content":{"rendered":"<p>My brother has this really neat wireless keyboard with built-in trackball for his mediacenter. There is only one downside: it doesn&#8217;t have a numerical keypad and you never really know if the numlock is on or off. I think it is off at boot, but after turning it on and logging on, it is off again, unless you did a reboot.. or something like that.. Anyway, since it can be quite a challenge to enter passwords correctly, I started looking for a numlock plasmoidish solution.<\/p>\n<p>First thing that turned up in the searches was the <a href=\"http:\/\/kde-look.org\/content\/show.php\/Keyboard+Status+Applet?content=115234\">Keyboard Status applet<\/a>. However, in the comments someone rightfully asks why it doesn&#8217;t use the keystate DataEngine. Great idea, because this is already packaged with vanilla kde. So I started searching for a general LED plasmoid which I could connect any datasource to using some mapping. No such luck. But then I wondered: why would someone write a plasma DataEngine and then not use it? \ud83d\ude42 There must be some existing plasmoid! It turned out to be the Key State plasmoid which is currently hosted at <a href=\"http:\/\/gitorious.org\/keystate\">gitorious<\/a>.<\/p>\n<p>Since it is a javascript plasmoid, you can install it as follows:<\/p>\n<p><code>git clone git:\/\/gitorious.org\/keystate\/keystate.git<br \/>\nplasmapkg -i keystate<\/code><\/p>\n<p>Done! It should now be in the list when adding plasmoids under the name &#8220;Key State&#8221;. You can configure a custom color for each special key. There are some advanced options as well which I didn&#8217;t try out. Here is what it looks like:<br \/>\n<center><img src='https:\/\/mattiesworld.gotdns.org\/weblog\/wp-content\/uploads\/2010\/09\/keystate_plasmoid.png' alt='Key State plasmoid' \/><\/center><br \/>\nA simple rectangle shows my numlock is active. I know, nothing fancy but it&#8217;s all we need and it does the job! Thank you Martin Blumenstingl. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My brother has this really neat wireless keyboard with built-in trackball for his mediacenter. There is only one downside: it doesn&#8217;t have a numerical keypad and you never really know if the numlock is on or off. I think it is off at boot, but after turning it on and logging on, it is off &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2010\/09\/11\/configuring-numlock-indicator-in-kde4\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Configuring numlock indicator in KDE4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,10],"tags":[],"class_list":["post-463","post","type-post","status-publish","format-standard","hentry","category-kde","category-tweaking"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":0,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}