Litarvan / lightdm-webkit-theme-litarvan

Litarvan's LightDM HTML Theme
BSD 3-Clause "New" or "Revised" License
707 stars 73 forks source link

Add Battery and Brightness features #173

Closed JezerM closed 2 years ago

JezerM commented 2 years ago

Fixes #61

Changes

Preview

Imagen 3-7-22 a las 01 11

Imagen 3-7-22 a las 01 11

moriel5 commented 2 years ago

That looks awesome!

Would it be possible to change the brightness, with either this or a follow-up pull request?

JezerM commented 2 years ago

You can do it if you have a proper and compatible display (like a laptop one). If there's a device inside /sys/class/backlight/, it will be detected by web-greeter/nody-greeter and so you could modify it with the brightness up/down keys.

However, a slider could be added in this PR as an extra~

moriel5 commented 2 years ago

That's great.

I was only hoping for keyboard control on devices such as laptops, but adding a slider will make things even better (now we need to look at volume control).

I really need to find time to try compiling the Litarvan theme on Solus (and then to try packaging it, and requesting for it to officially be added to the Solus repos).

JezerM commented 2 years ago

... now we need to look at volume control.

I thought about it back then, but I think is worthless. Usually, you don't have sounds in your login or lock screen, and I'm almost 100% sure that no lightdm-webkit2-greeter theme has sounds.

Even if you're using a web based greeter as a Lock Screen with light-locker, the moment you lock the screen all media is paused/stopped, so it's not useful for volume control of your playlist either...

moriel5 commented 2 years ago

Hmm... That is a valid point. I was thinking about feature parity with other OSs (Windows, MacOS) and display managers/greeters (gdm), however that would be an issue.

JezerM commented 2 years ago

Brightness slider added :D The slider appears when hovering the Brightness addition.

Here is a preview:

Imagen 3-7-22 a las 19 07

Imagen 3-7-22 a las 19 07

Litarvan commented 2 years ago

This is so cool! I'll give it a try tomorrow before merging :D