Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/precondition/eog-mouse-coords-and-rgb
Eye of Gnome (eog) plugin showing the mouse coords and RGB values in the statusbar
https://github.com/precondition/eog-mouse-coords-and-rgb
eog eye-of-gnome gnome gnu-linux gtk gtk3 image image-viewer linux plugin rgb statusbar
Last synced: about 2 months ago
JSON representation
Eye of Gnome (eog) plugin showing the mouse coords and RGB values in the statusbar
- Host: GitHub
- URL: https://github.com/precondition/eog-mouse-coords-and-rgb
- Owner: precondition
- License: gpl-3.0
- Created: 2023-10-27T21:27:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-22T17:31:09.000Z (10 months ago)
- Last Synced: 2024-10-25T09:11:36.914Z (3 months ago)
- Topics: eog, eye-of-gnome, gnome, gnu-linux, gtk, gtk3, image, image-viewer, linux, plugin, rgb, statusbar
- Language: Python
- Homepage:
- Size: 1.17 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mouse Coords and RGB Plugin for Eye of Gnome (EOG), Gnome's image viewer
This plugin adds a status bar showing the image coordinates of the pixel your cursor hovers around, as well as the RGB values of that pixel.
This plugin is made for versions of `eog` running on GTK version 3. Practically speaking, it has only been tested on Eye of Gnome version 42.https://github.com/precondition/eog-mouse-coords-and-rgb/assets/57645186/d84c01f2-50ae-4a99-8fd8-7f2e35fb0c2d
## Usage
Copy `mouse-coords-and-rgb.py` and `mouse-coords-and-rgb.plugin` into `~/.local/share/eog/plugins` if you're on Linux, then make sure to enable the plugin by opening the hamburger menu and going into “Setting” and choosing the “Plugins” tab where “Mouse Coordinates and RGB” should hopefully be listed.
## History
Originally, this plugin was written by [sdaau](https://sourceforge.net/u/sdaau/profile/) for the Gnome2 version of `eog` and his code is available in his [“SdaauBckp” repository on SourceForge](https://sourceforge.net/p/sdaaubckp/code/HEAD/tree/extensions/eog/mousecoords) ([WebArchive link](https://web.archive.org/web/20231027205517/https://sourceforge.net/p/sdaaubckp/code/HEAD/tree/extensions/eog/mousecoords/)). I (precondition) updated the code to be compatible with Gnome3. In addition to merely bringing the code up-to-date, I removed info related to the scaled image size, the zoom level, and the `eog` window coords because I found them to be unnecessary noise. In their place, I added RGB info to get something closer to the status bar of the OpenCV image/video viewer. I also removed the feature that lets you copy the mouse coords into clipboard since that was implemented with the obsolete “UI Manager” framework and I couldn't be bothered to figure out how to re-implement this feature I don't need in the new framework.
The code could definitely make use of a clean-up and refactor but it works for me ¯\\_ (ツ)_/¯