Giter Club home page Giter Club logo

gnome-runcat's Introduction

RunCat for GNOME Shell Logo

RunCat for GNOME Shell

RunCat provides a key-frame animation to the GNOME Shell top bar.
Animation speed changes depending on CPU usage.


RunCat for GNOME Shell

Installation

This is the recommended method for installation, as it doesn't require the build dependencies for installation. You can install this extension by visiting the GNOME Shell Extensions page for this extension.

Manual installation

From source code

If you want to install the extension from sources, clone the RunCat repository, navigate to the cloned directory and run:

$ make install

Release ZIP-archive

If you want to install the extension from release zip-archive, download [email protected] from the releases section and run:

$ gnome-extensions install path/to/[email protected] --force

After installation:

  1. Restart the GNOME Shell:
    • ALT+F2 to open the command prompt, and enter r to restart the GNOME Shell (available on Xorg only);
    • or Log Out, then Log In, if GNOME Shell won't restart;
  2. Enable the extension:
    • Open GNOME Extensions β†’ RunCat β†’ On;
    • or Run in terminal: gnome-extensions enable [email protected].

Manage RunCat preferences

  • Right-click on the extension button on the top bar β†’ Settings;
  • or Open GNOME Extensions β†’ RunCat β†’ βš™οΈ;
  • or Open RunCat on GNOME Extensions portal β†’ βš™οΈ;
  • or Manage directly in dconf: dconf list /org/gnome/shell/extensions/runcat/.

Translations

Working with existing translations

make translations command extracts translatable strings and updates existing translations. Make sure that you've run this command before pushing changes.

  • make po/messages.pot command extracts translatable strings;
  • make po/*.po command updates existing translations.

Starting new translation

To create a new translation file, use the following command:
msginit -i po/messages.pot -l <locale> --no-translator -o po/<locale>.po.

Examples

Spanish locale: msginit -i po/messages.pot -l es --no-translator -o po/es.po.
Spanish (Argentina) locale: msginit -i po/messages.pot -l es_AR --no-translator -o po/es_AR.po.

Useful commands for developers

You need to install project JS dependencies first: npm i

  • npm run types:generate β€” generate type definition for GJS environment;
  • npm run test:lint β€” lint project files.

macOS version

Thanks to Takuto Nakamura for the macOS version and cat images.


Developed by Sergei Kolesnikov

gnome-runcat's People

Contributors

bouteilleralan avatar koolskateguy89 avatar luavixen avatar ry755 avatar win0err 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

gnome-runcat's Issues

A "sleeping" threshold

Now the poor cat has to run permanently, even if the CPU load is 1 - 2 - 3%.
What if some simple setting is implemented, make the cat sleeping for the low values of CPU load?
Let's say, a checkbox "sleep under 5%" or a input field "sleep under [...] %".

P.S. That is a great idea, such a widget. Thanks.

Reserve space for two ciphers

Today I noticed that the icons in the right part of gnome-shell top bar (Gnome 43) were moving a bit all the time horizontally. It was caused by CPU % moving around 8-12%

Maybe it would be interesting to reserve the space of the extra ciphers to not show this movement πŸ€”

Thanks a lot

Percentage position

20200421155154

Fedora 32, GNOME 3.36, default theme and font and I switched all other extensions

Launch gnome-system-monitor on click

I think it would be cool if you could click the cat to launch gnome-system-monitor with the resources tab open (-r commandline option), to get more detailed info on cpu usage as a quick shortcut.

Proposal: Add Ram utilization and Idle threshold only for sleep

First of all, I was searching for a simple extension that shows cpu utilization and when I show that your extension also has and idle threshold setting I was amazed. I wanted to have something like that for a very long time. Great work!

  1. I'm not sure you want to add ram utilization to your extension, but it would be a great addition to have both metrics in a compact "block". A simple, static icon can indicate which percentage corresponds to cpu and which to ram utilization.

  2. It many not be as clean as you have it now, but you may be interested in adding the following option. Besides your current "Idle threshold", use the same metric to change org/gnome/settings-daemon/plugins/power sleep-inactive-ac-type to 'nothing'. Optionally, add a "default" behavior for when the value is below the threshold.

    I don't know if this makes since to anyone other than me, but sometimes I want my computer to lock and put the monitors to sleep, but I don't want my whole system to suspend. For example, when I am running a job in the background I wouldn't mind the energy savings from turning off my monitors, but I also don't want my program to stop running. Right now I have set sleep-inactive-ac-type='nothing' because I always forget to change it when I am running some simulations overnight and I am wasting a lot of extra energy.

Stopped working after the recent update

Gnome 3.34. Everything was fine till the recent update. Now it doesn't work with the following message:

JS ERROR: Extension [email protected]: Error: Type name Gjs_PanelMenuButton is already registered
_init/GObject.Object._classInit@resource:///org/gnome/gjs/modules/overrides/GObject.js:385:24
registerClass@resource:///org/gnome/gjs/modules/overrides/GObject.js:94:12
@/home/pha/.local/share/gnome-shell/extensions/[email protected]/panelMenuButton.js:12:23
@/home/pha/.local/share/gnome-shell/extensions/[email protected]/extension.js:6:7
_callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:348:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:278:22
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:244:17
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:108:13

Please let me know if I can provide more details.

Destination directory

Adding the ability to change the location of the target directory.

If you run the command sudo make install then the installation will be in /usr/share/gnome-shell/extensions

After approval, I can send pull igor-dyatlov@1611532

runcat after screen inactivity

runcat stops running after the screen went dark by gnome power settings, have to restart runcat in the gnome extension once again. not so after a suspend of the linux box

Broken settings window appearance on Gnome 42.rc

After forcing this extension to install on Gnome 42.rc by adding "42" to metadata.json, the settings window looks wrong. The settings themselves still work, they just look a bit scrunched :P
Other than this cosmetic issue, the rest of the extension seems to work properly without any extra changes.

image

image

Better support for multi-core CPUs

If you see only one indicator for total cpu load then it's harder to detect the case of a single program locking up and consuming 100% of a single core. There should be possibility of having one cat per core, or some other indication that a core is 100% busy.

Merging v22 feature branch

Hey @win0err,
while thinking about adding multiple runner support to your extension, i saw there is already a PR merged.

Do you intent releasing these features?

Best regards

Update stops and restarts randomly on Gnome 40.4.0

On Gnome 40.4.0 I noticed updating issue, extension seems to stop and restart updating itself randomly.
Load string is also trimmed at percentage sign and returns back to normal when clicked anywhere at the top bar.
I tried to take a screenshot but this operation also fixes the problem.

Debian bookworm, Gnome 40.4.0

Upgrade runcat failed today

Hi guys, I saw the upgrade notice today and i open the gnome extension website to upgrade my runcat, but it failed, then I try to reinstall runcat but it also failed, is anybody here know what's going on? and how can i install the runcat latest version..
My system is Ubuntu 22.04 with gnome 42.4 in Wayland.

Add options other than the cat

It being a GNOME extension, I think there should also be a wanda the fish and Gegl (Genetically Large Engineered Goat).

Possibly one or both only as easter eggs :)

can't open the extension

The settings of extension [email protected] had an error:

Error: Requiring Adw, version none: Typelib file for namespace 'Adw' (any version) not found

Stack trace:

@/home/seoyeon/.local/share/gnome-shell/extensions/[email protected]/prefs.js:6:5
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Can more hardware information be displayed?

Just like the version of mac os, show

  • CPU usage
  • Memory performance
  • Battery state
  • Disk capacity
  • Network connection

and many more

I don’t know the complexity of implementing this function, but it is really needed. I did not find a suitable software or plug-in on linux like runcat (as far as the gnome plug-in installation I currently test and use has prompted an error, and the experience It's really not as good as runcat), so if it can display more hardware information, it would be great, thank you very much for bringing runcat to the linux platform, waiting for your reply!

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.