Giter Site home page Giter Site logo

jeffchannell / jiggle Goto Github PK

View Code? Open in Web Editor NEW
133.0 133.0 27.0 557 KB

Gnome extension that highlights the cursor position when the mouse is moved rapidly.

License: GNU General Public License v2.0

JavaScript 95.10% Shell 0.37% Makefile 4.20% CSS 0.33%

jiggle's People

Contributors

jeffchannell avatar rohmishra avatar simsilver avatar vthg2themax 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

jiggle's Issues

Add color themes to fireworks effect

Possible theme ideas:

  • golden ratio fade (already added to math.js, just needs some hsv code?)
  • read from system theme
  • choose a color (or multiple?)

Failing to trigger on Gnome 42.5 / Wayland

On my setup, Jiggle fails to trigger. After activation, on the first mouse shake, it outputs the following to the system journal:

JS ERROR: TypeError: Gdk.Display.get_default() is null
start@/home/username/.local/share/gnome-shell/extensions/[email protected]/effects/FireworksEffect.js:133:34
enable/<@/home/username/.local/share/gnome-shell/extensions/[email protected]/extension.js:66:36

(It is currently set to the fireworks effect but the issue persists on both options.)

I use Gnome 42.5 on Wayland (Ubuntu 22.04).

Hold cursor size before shrinking

After shaking the mouse, the cursor expands and immediately starts to shrink.

Something nice would be to hold the inflated cursor size for x milliseconds before deflating (or hold while shaking, see #74).

Hide cursor doesnt work on Gnome 42

On gnome 42, under Cursor Scaling the hide cursor option does not work anymore

Cursor is not hidden regardless of the chosen option

Spotlight and fireworks work as expected

Animations loops while shaking

A bug I found is that the cursor starts to shrink while shaking continuously.

If you continue to shake further, it will grow - shrink - grow - shrink - ...

Could I trigger the highlight using the keyboard?

In Gnome Tweaks I can enable "pointer location", which highlights the cursor when the Ctrl key is pressed. I think it would be easier to me than jiggling the mouse. I prefer this extension, since the highlight is much more prominent.

Would it be possible to activate the highlight with the Ctrl key, or perhaps (if it's not feasible) with an another keyboard shortcut?

Thanks!
Noam

does not work with trackpad

for me it works only with the mouse and not with the trackpad.
With the trackpad, simply nothing happens. Not sure if is intended, but it would be great if it would work also with the trackpad.

I'm using the latest Fedora 34.

Gnome 41 support

Currently the extension is marked as incompatible on Gnome 41. It would be nice to have that supported.

Cursor color when jiggling is black no matter what....

Hi,

Great extension, very useful, imho it should be integrated by default in gnome...
but it seems that the cursor color is set to black when the jiggling effect kicks in.

I' have set my cursor to white (easier to find in a multiple screens setup) but
when I jiggle the cursor, the cursor shown by this extension turns back to black with
white contours... any chance to stick with the system cursor color ?

thanks in advance

Wayland support not working on GNOME 40

I don't know if the extension was made to work on Wayland, but for me at least, it doesn't. This is really unfortunate because it's a great extension and Wayland is likely to be future of Linux display servers/protocols. Therefore, Wayland support should be added.
I use GNOME 40 on Fedora 34 Workstation Beta.

Faster response

Thank you for jiggle.
I have been wanting this for some time now.

Is it possible to make it respond faster?

Add option to cancel jiggle on full screen?

Heya!

I'm not sure how hard this would be to implement, but I think it would be great if jiggle can be toggled off when full screen applications are running (e.g. games, movies).

Preserve the tip position when growing

If the cursor is grown and I want to click on something, the tip of the enlarged pointer is not the point the click will register at. This can lead to accidental clicks on the wrong button or similar.

Would it be difficult to make the cursor grow "away from the tip" so that the position of the tip is preserved?

The cursor is not displayed in the open window

The cursor is not displayed in the open window of the video player (most likely manifested in other full-screen programs).

How to reproduce the problem:

  1. Shake the cursor to start the effect (any effect);
  2. Open the video player to full screen and try to move the mouse, the cursor will not be displayed.

The problem makes it impossible to pause, reduce the volume, fast forward/rewind video etc., with the mouse, when the video player is full screen.

I think this is due to the overlay on top of the windows of a transparent window, as when you turn off the option: "Hide Original Cursor", this problem does not appear.

If important:
Ubuntu 20.04.3
GNOME: 3.36.8
Session: X.Org

Feature Request: Support custom cursors

Currently jiggle doesn't support rendering any custom cursors defined.

An way to implement this could be to look at the GSettings value of /org/gnome/desktop/interface/cursor-theme, then look for that cursor SVG/pixmap inside the designated XDG directories.

Error on Gnome 3.38.1

When using Gnome version 3.38.1 i get the error No JS module 'tweener' found in search path. Probably some removed files.

I see this is reported on gnome extensions website as well.

Do not enlarge when mouse clicked

In painting often you need to shake a mouse and paint. Is it possible to not enlarge the pointer when the mouse is clicked during shaking?

Clean up code

Lots of stuff in extension.js should be moved to jiggle.js

[testing] restarting Gnome Shell crashes WM?

Current testing build seems to crash the WM if Gnome Shell is restarted. Not apparent with normal use, but this signifies there’s something not working correctly.

Likely due to the cursor hiding window and something not being deallocated properly.

Scaling quality

When creating the mock cursor image, try to get the largest version available instead of upscaling the existing one.

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.