i3blocks blocklet that shows status of a hue light, and has basic controls
I have just got this working as a proof of concept, and has a very limited feature set.
- font-awesome
[light]
command=$SCRIPT_DIR/hue-status $SCRIPT_DIR/electron-hue-color-picker-linux-x64/electron-hue-color-picker
interval=1
markup=pango
for_window [class="electron-hue-color-picker"] floating enable
Left Click - On
Right Click - Off
Scroll Up - Increase brightness
Scroll Down - Decrease brightness
Middle Click - Select Colour
- Unzip the release to $SCRIPT_DIR
- You should then have the following
- $SCRIPT_DIR/hue-status
- $SCRIPT_DIR/electron-hue-color-picker-linux-x64
- You can put the hue-status executable wherever you want, just update your i3blocks config
- If you change the location of the electron-hue-color-picker, add the new location as an argument in your i3blocks config
command=/home/rowan/.config/i3/Light-Control/hue-status ~/.config/i3/electron-hue-color-picker-linux-x64/electron-hue-color-picker
- You should then have the following
- Add the require lines to i3blocks.conf and your i3 config
- I'm unsure how this will work with multi-monitor setups and am unable to test it
- The first time you middle click it after boot, it will take longer to open up the color picker than all subsequent times
- The colour picker is better than it was, but still not perfect
- I will try and make it better when I learn how to and have time
- You may use it without the electron-hue-color-picker, and it will retain all functionality, except changing colors