thankjura / ds4battery

Gnome Shell extensions for DS3/DS4/DS5
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

Underline with Color #16

Open eode opened 12 months ago

eode commented 12 months ago

When you have more than one controller present, it would be very helpful if the percentage and Icon had an underline that reflects the color of the controller.

Ideally, this would be updated just like the percentage is, since the color can change during use.

eode commented 12 months ago

the colors are available in the /sys/bus/hid/drivers/playstation/xxxxxx/leds folder, separately listed red, green, and blue.

thankjura commented 12 months ago

I already implement this for ds4, but color different if you set color via steam. I found 6 files for ds5: input51:rgb:indicator/brightness, input51:white:player-{1,5} but I don't know how to get rgb from this files. Alternatively, I can try using an external program, for example https://github.com/nowrep/dualsensectl. I will think about it

thankjura commented 11 months ago

I can set color, ex. echo 255 0 0 > /sys/bus/hid/drivers/playstation/xxxxxxxxxx/leds/input26:rgb:indicator/multi_intensity, but after reconnect controller value always is 0 0 0