Skip to content

I-Gregory/gregory-color_picker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

147 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color-picker

GNOME Shell extension to pick colors on the desktop.

春水碧于天,画船听雨眠。 —— 韦庄《菩萨蛮》
license

color-picker-menu

Installation

Manual

The latest and supported version should only work on the current stable version of GNOME Shell.

git clone https://github.com/tuberry/color-picker.git && cd color-picker
meson setup build && meson install -C build
# meson setup build -Dtarget=system && meson install -C build # system-wide, default --prefix=/usr/local

For older versions, it's recommended to install via:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell \
          --method org.gnome.Shell.Extensions.InstallRemoteExtension 'color-picker@tuberry'

It's quite the same as installing from:

E.G.O

Get it on GNOME Extensions

Features

DBus

gdbus introspect --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/ColorPicker

Pick

Pick a color and return as XDG Desktop Screenshot Portal required.

Run

Invoke like using the shortcut or clicking the systray indicator. e.g.:

[Desktop Entry]
Type=Application
NoDisplay=false
Exec=gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/ColorPicker --method org.gnome.Shell.Extensions.ColorPicker.Run
Icon=face-monkey
Name=Color Picker

Contributions

Feel free to open an issue in the repo for any questions or ideas, particularly before making significant changes or introducing new features.

Translations

To initialize or update the po file from sources:

bash ./cli/update-po.sh (your_lang_code) # like zh_CN, default to $LANG

Developments

To install GJS TypeScript type definitions:

npm install @girs/gnome-shell --save-dev

Acknowledgements

  • PowerToys: the idea of custom color formats

About

GNOME Shell extension to pick colors on the desktop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 88.9%
  • SCSS 6.4%
  • Meson 3.7%
  • Shell 1.0%