Giter VIP home page Giter VIP logo

gnome-shell-extension-lockkeys's People

Contributors

bartek20 avatar bouska avatar dongsibo avatar etamuk avatar flashsystems avatar gergelypolonkai avatar hazemkaroui avatar jaylittle avatar jesse97 avatar jonnius avatar jskorepa avatar kaj avatar kazysmaster avatar majal avatar michaellass avatar mjkim0727 avatar muhaaliss avatar ossman avatar phw avatar prescott66 avatar ralgo avatar raphaelrochet avatar soiamsong avatar squall77it avatar tarnyko avatar tiagoflach avatar vaporwavie avatar vibe-hu avatar vistaus avatar warmsun0220 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnome-shell-extension-lockkeys's Issues

Icon licensing

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 :)

Load fails on Fedora 28

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

[gnome 3.34.3] Usage of object.actor is deprecated for LockKeysIndicator

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

Add F-Lock

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.

Lock Keys taking up space in gnome 3.34 w/ Wayland

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:

lock-keys-screenshot

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? :)

Gjs-Message: JS WARNING: assignment to undeclared variable id

Description:
This is a minor issue I noticed in Fedora 23 (IDK if it applies to earlier versions).

Steps to reproduce:

  1. gnome-shell-extension-prefs [email protected]

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.

Toggles Disabled on Ubuntu 18.10

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?

Add display of sticky keys

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!

Extra option for notification mode only

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.

Indicator missing on login and lock screens

While the indicators show up fine when logged in, they don't show up:

  1. On the login screen, and
  2. On the unlock screen when the session is locked.

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?

Error in 3.10

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));

Icons in notifications

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

Icon LICENSE

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.

Not working under Wayland

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.

The detection Error of Thinkpad Numlock

"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.

Update to Gnome 3.20

Well, in all extrension's repositories the people are asking for this, please, update this extrension for work with Gnome 3.20.

Greek translation

Hello, I have translated the extension in greek. Where should I upload it

Switching from Show/Hide option to other doesn't show icons

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.

Add installation procedure

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.

Doesn't work in Fedora 28.

Thanks for nice work.
I used the extension with Fedora 27 successfully.
But after upgrade to Fedora 28 the extension stopped to run.

Show only if key is active

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.

How to set italian language?

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

Feature request: additional option for OSD notification (like volume change)

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):
LockKeys_OSD-notification

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.

Feature Request: Add Mic Mute icon

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.

Change icons ? Or have them white ?

Hi,

with Adapta gtk and gnome-shell theme icons are too dark :
lockkey

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.

"Usage of object.actor is deprecated" message

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?

Error during the installation using both GitHub and Gnome-Extension-Tool

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".

Schermata da 2020-03-11 12-32-53

My system is Ubuntu 18.04 LTS using GNOME Shell 3.28.4 .
Thank you for the attention.

Feature Request: Add option for default setting for both num and caps lock

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.

Keys shown as disabled after restarting GNOME Shell

Steps to reproduce:

  • Have at least one key enabled.
  • Restart GNOME Shell.

Result:

  • Both keys are shown as disabled, however their state is the same as before restarting GNOME Shell. After hitting one of the keys, the correct state of the keys is shown.

Expected result:

  • Keys show their correct state after restarting GNOME Shell.

No longer able to enable/disable extensions via GNOME Tweaks or https://extensions.gnome.org/local/ since updating to latest version

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.

image

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.

image

However, the extension seems to actually be in effect whenever I log on.

I have tried rebooting and reinstalling, to no avail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.