From: Adrian Iain Lam Date: Wed, 24 Aug 2016 20:59:30 +0000 (+0800) Subject: Add ubuntu ScrLck fix to README; fix README formatting X-Git-Tag: v0.99~6 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=9900bce10aadc930d24133096a13f6f288769e38;p=indicator-keyboard-led.git Add ubuntu ScrLck fix to README; fix README formatting --- diff --git a/README.md b/README.md index 86240b9..345b077 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ useful for keyboards without Scroll lock keys or malfunctioning keyboards. ## Screenshots -![indicator default][sc1] +![indicator default][sc1] Default appearance of the indicator with Num lock on and Caps and Scroll locks off. -![indicator menu][sc2] +![indicator menu][sc2] Menu of the indicator, shown on click. The locks can be toggled by clicking the respective item in the menu. -![indicator short][sc3] +![indicator short][sc3] Alternative (short) appearance of the indicator. [sc1]: screenshots/sc1.png @@ -49,6 +49,40 @@ distributions. To install the rest, run: 6. Clicking on the indicator should result in a menu with the three locks. Clicking on the menu item would cause the corresponding lock to toggle. +## Known bugs + +It seems to be a common problem that Scroll Lock is not usable in Ubuntu. +To solve this, do the following (assuming US keyboard): + + > # backup your symbols file + > sudo cp /usr/share/X11/xkb/symbols/us{,.distribution} + > + > Add the following line in the `xkb_symbols "basic" {` section. Do not worry + > if that second line is not there, it is only there for some languages and + > was not there for us on my system. + > + > ... + > modifier_map Mod3 { Scroll_Lock }; <==<< Add this line + > + > include "level3(ralt_switch)" <==<< before this line + > }; + > + > + > You may have to do the same in your other layouts if you switch between + > languages. + > + > Also, there is a cache where xkb layouts live. You should clear it before + > restarting your X server to check the new keyboard symbol file(s). + > + > sudo dpkg-reconfigure xkb-data + +*By Pykler and Giovanni Toraldo on AskUbuntu.* [Source][quotesrc]. Slightly +modified. [Original source][origsrc] by dm+ on PCLinuxOS-Forums. + +[origsrc]: http://www.pclinuxos.com/forum/index.php/topic,125690.msg1052201.html?PHPSESSID=2qsv83lve6dgd0ivq14bfcjc30#msg1052201 +[quotesrc]: http://askubuntu.com/a/597757/274080 + + ## License The program "indicator-keyboard-led.py" is released under the MIT License.