kazysmaster / gnome-shell-extension-lockkeys Goto Github PK
View Code? Open in Web Editor NEWNumlock and Capslock indicator for gnome-shell
Numlock and Capslock indicator for gnome-shell
Hi, I cannot find any information within this repository detailing the license for either the code or the icons.
Assuming your icons are under suitable license, with your permission I would like to reuse them within the Budgie Desktop for our own "lock keys" applet.
Thanks :)
Description:
This is a minor issue I noticed in Fedora 23 (IDK if it applies to earlier versions).
Steps to reproduce:
Actual results:
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Expected results:
Clean execution without warnings
Note:
This is related to given extension as not all extensions print this warning.
When the focus is on a Libreoffice window, the extension doesn't refresh it's state when Caps lock or Num lock are pressed.
When I try to load the extensions it will fails with:
Some code accessed the property 'ENABLED_EXTENSIONS_KEY' on the module 'extensionSystem'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
gnome-shell[8148]: Extension "[email protected]" had error: Error: Requiring Caribou, version none: Typelib file for namespace 'Caribou' (any version) not found
Hi,
using the extension under Gnome 3.34.3, fill the journal log with a lot of these messages:
gen 12 23:58:39 lisco2-nb gnome-shell[25532]: Usage of object.actor is deprecated for LockKeysIndicator
get@resource:///org/gnome/shell/ui/environment.js:249:29
displayState@/home/myuser/.local/share/gnome-shell/extensions/[email protected]/extension.js:212:3
_updateState@/home/myuser/.local/share/gnome-shell/extensions/[email protected]/extension.js:139:3
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_handleStateChange@/home/myuser/.local/share/gnome-shell/extensions/[email protected]/extension.js:132:3
This is the only other lock key missing. This fork has a potential method for an older version of the extension.
Add an F-Lock feature to switch between normal function key usage, and special usage
Example: On apple keyboards, the F keys affect screen brightness, volume etc. Switching the F-Lock would make them use their normal usage.
Hello! :)
I love your extension! Unfortunately after an update to Fedora 31, I got this small issue:
The extension is taking up space, even though it is set to be hidden.
Please, see the screenshot below for better explanation. When I hover above the empty space and click it, I can see this image:
In previous Fedora versions, this space was not taken up by the extension (only when CapsLock / NumLock were turned on). On my small laptop screen this is taking up already scarce screen in the top bar. Could you please fix it? :)
Description:
This is a minor issue I noticed in Fedora 23 (IDK if it applies to earlier versions).
Steps to reproduce:
Actual results:
Gjs-Message: JS WARNING: [/home/jprajzne/.local/share/gnome-shell/extensions/[email protected]/prefs.js 56]: assignment to undeclared variable id
Expected results:
Clean execution without warnings
Note:
This is related to given extension as not all extensions print this warning.
The toggles in the menu are grayed out, and are not toggleable. The functionality as a basic indicator still works, but personally I've mostly used it to toggle them and this is a large issue. Any ideas why this is happening? Is it intentional?
There would be a huge benefit to the disabled community if you could add an option to display sticky key status. Many others like myself who can only type with one finger or have other hand function problems use sticky keys because we have difficulty pressing two keys at once. The sticky key feature is great, but rendered very annoying without a display of the sticky key status, because often one of the keys (CTRL, SHIFT, or ALT) will be pressed mistakenly.
I know this is a bit different than the original purpose of the extension, but it seems related. Thanks for considering this, and great job with the existing extension!
I'd like and option where this extension only shows the status changing notifications.
Until now, I've been modifying myself, but, if you can, please make it work in this mode too.
While the indicators show up fine when logged in, they don't show up:
This functionality is most helpful when entering a password.
Please add support for this. Or is there another way to show a Num Lk indicator on these screens?
Hi - this is working in 3.10 but just noticed getting this error:
** Message: JS WARNING: [~/.local/share/gnome-shell/extensions/[email protected]/prefs.js 55]: assignment to undeclared variable id
Refers to:
for (id in values) {
widget.append(id, values[id]);
}
widget.set_active_id(settings.get_string(key));
in _prepareSource, this._source.createNotificationIcon doesn't work (or even exist ? with Gnome 3.22) and St.IconType neither.
I suggest something like
this._source.createIcon = function() {
return new St.Icon({ icon_name: icon_name+'-symbolic' });
};
but i can't tell what would be the behavior of this syntax with olders version of Gnome Shell
Hi,
I would like to use your icons for one of my projects.. can you please add some LICENSE file so I can give you credits ?
Thanks in advance,
L.
If entering "GNOME on Wayland" session, this extension fails to detect the state and its changes of Caps Lock and Num Lock. Manually switching the state by clicking the extension's switcher won't affect the real state of two keys.
I am in Debian stretch/testing with GNOME 3.18.
"version" : 5
Lockkeys shows my Thinkpad x200s' Numlock
had turned on which was not (as the LED indicator showed) . What is worse, the Lockkeys won't changed even when I really turned Numlock
on.
Well, in all extrension's repositories the people are asking for this, please, update this extrension for work with Gnome 3.20.
Hello, I have translated the extension in greek. Where should I upload it
Works perfectly on Fedora 31 (Gnome 3.34.4) but only when in an active Thunderbird screen!
Any ideas?
Regards
the addon is not compatible with GNOME SHELL 3.4 in ubuntu 12.04
When in Show/Hide mode without any lock active (i.e. no icon shown), then switching to one of the other modes, e.g. "Both", doesn't show the indicator icons. Even after toggling one of the lock keys, the icons don't appear.
Only when switching to Show/Hide mode, then enabling on lock so the icon shows up and then switching to one of the other modes, it will work.
Considering this project has no autogen.sh
it might be useful to add a manual installation procedure to README.md, for those not familiar with GNOME plugins.
Hi,
Toggling the caps lock key while in the overview mode doesn't toggle the 'A' indicator in the top panel. The toggling only works upon exiting the overview mode.
Thanks.
Thanks for nice work.
I used the extension with Fedora 27 successfully.
But after upgrade to Fedora 28 the extension stopped to run.
For sticky-keys users it would be nice to see the state of the Modifier Keys (ctrl, shift, alt, alt gr, super). Something like http://www.webupd8.org/2014/09/keyboard-modifiers-state-indicator-for.html
Are there any plans to add them?
thanks wachjose
please update the extension for gnome 3.8.
It would be cool if there was an option to display the notification icon only if the key is pressed. This would reduce clutter in the notification area while still providing the info if the key is active.
Can we get an update for 3.18, please?
Hi, I installed this extension using Gnome Extension Tool, but it doesn't recognize the system language (Italian) and it's in English. Why?
I have Ubuntu 18.04 LTS
Please support Gnome 3.12.
Hello, can you update this extension for the gnome 3.28 on ubuntu 18.04 lts
support gnome 3.14
Hi,
After right click on extension in panel, state buttons appear :
https://raw.githubusercontent.com/kazysmaster/gnome-shell-extension-lockkeys/master/screenshot.png
but click on these buttons does not do anything.
One might expect ability to switch on / off there also ?
Regarding to new POT template, there is needed to add context for this string (disambiguate strings):
#: extension.js:213 prefs.js:41
msgid "Off"
msgstr ""
Gnome wiki: https://wiki.gnome.org/TranslationProject/DevGuidelines/Translation%20contexts
One translation is for Osd (Caps Lock Off) and second translation is in Extension settings for disabling Notifications.
I'm not good at typing and I have to look down (at the keyboard) a lot. Because of this I often miss the notification when I accidentally hit caps lock.
I would really like to see more prominent notification closer to the bottom edge of the screen. Notification like the one for volume change would fit perfectly.
I don't know how this can be done via gjs but I'm able to do it via gdbus call
from terminal.
End result would be something like this (I executed the gdbus call
and hit the caps lock at the same time):
Command used to achieve this is:
gdbus call --session --dest 'org.gnome.Shell' --object-path '/org/gnome/Shell' --method 'org.gnome.Shell.ShowOSD' "{'icon': <'/home/uros/.local/bin/capslock-enabled-argos-top.svg'>, 'label': <'Caps Lock On'>}"
Icon can referred by name (without file extension) if it is from current theme or by full path and name if it is custom.
Great extension. I have a feature request though. I do a lot of teleconferencing with my computer, across various apps like Skype, Fuze, etc. I have created a keyboard shortcut to toggle the mute on my microphone
amixer set Capture toggle
Simply typing amixer on the terminal shows it turning off and on, but I would really love to have a status indicator in this extension to show me if I am muted or not.
Hopefully it is a simple enhancement. Perhaps the amixer is not the best way to do this. If there is a smarter way I don't about it though :)
Hope to see this soon. I'm not a dev and I thought about using this extension's code to create my own as the concepts are identical. But looking at the HOWTOs for extensions reminds me very quickly that I am not a dev.
Hi,
with Adapta gtk and gnome-shell theme icons are too dark :
I've tried to modify their color ( to full white ) in inkscape, but no change.
Any hints ?
edit :
…the icons displayed in panel are not the ones located in
~/.local/share/gnome-shell/extensions/[email protected]/icons/
???
Ubuntu 18.04 here.
Ok, sorry. That depends on icon theme, so Papirus-Dark instead of Papirus did the trick.
I noticed that a pull request that fixes the "Usage of object.actor is deprecated" messages was merged into master a couple of weeks ago.
This does indeed remove most of the messages from my journal logs, but I still get one message from this line in _init
which uses this.actor
.
Should this line also be changed in response to the "Usage of object.actor is deprecated" message?
Hi, I have a problem after the update of the extension on the Gnome-Extension: the installation gives me error if I install it both using Gnome-Extension and manually downloading though GitHub repo.
In particular the error is about an import: "imports.gi.Gtk.Keymap is undefined".
My system is Ubuntu 18.04 LTS using GNOME Shell 3.28.4 .
Thank you for the attention.
My Numlock is off by default but I would like it to be on and now I have to push the button in the top bar every time my laptop starts up, which is quite annoying. I added a call to the onclick for the Numlock button at the end of the initialization in the code on my machine but that's a bit dirty... That toggles it every time I log out and in or restart Gnome.
When the CapsLock key is pressed inside a bash terminal, the indicator does not notify. Only when the terminal window is closed, does the indicator notify about the last status of the CapsLock. This issue was encountered on Fedora 27 under Wayland.
With the update for GNOME 3.32, icons no longer change with the icon theme, would be great if we could get themeable icons back.
Thanks!
Steps to reproduce:
Result:
Expected result:
OS: Ubuntu Desktop 18.04.3 x86-64
I updated the extension this morning and the extension can no longer be managed (toggled on or off) via either GNOME Tweaks or https://extensions.gnome.org/local/
GNOME Tweaks gives me a triangle-with-exclamation-mark icon, telling me "Error loading extension", and the toggle next to it is disabled. The only thing I can do from Tweaks is to open the extension's configuration dialog.
The https://extensions.gnome.org/local/ website also shows me a red "ERROR" button next to the extension. I can open the extension's configuration dialog or completely uninstall it from the website.
However, the extension seems to actually be in effect whenever I log on.
I have tried rebooting and reinstalling, to no avail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.