mortie / swaylock-effects

Swaylock, with fancy effects
MIT License
708 stars 45 forks source link

Feature request: Text X/Y and size seperate from indicator #17

Open rhysperry111 opened 4 years ago

rhysperry111 commented 4 years ago

Hi, I think it would be really cool to allow the user to specify the text X/Y and size separately from the indicator. The effect intended would be something like this: Image credit: u/hty19 - r/unixporn

mortie commented 4 years ago

Detaching the clock from the indicator doesn't really fit with the design of swaylock-effects, but you can hide the indicator. For example, this command will produce a result that's somewhat similar to the one you showed: swaylock --indicator --screenshot --effect-pixelate 30 --clock --inside-color 00000000 --ring-color 00000000 --line-color 00000000 --indicator-radius 150 --text-color ffffffff

20200514_13h54m58s_grim

You could even add a white circle at the bottom of the screen with the --effect-compose option, and you could add more options to make the indicator transparent also while verifying a password. The only difference would be that the unlocking animation happens around the text instead of around the circle at the bottom of the screen.

lokesh-krishna commented 3 years ago

I think the real appeal lies in scaling the date and time strings independently of the ring radius which affects the distance between the two unless I'm missing something. This would let one increase the date string while still keeping it close to the time string to create something like:

lock

Currently, I am unable to increase the date string size without increasing the indicator radius and then to tightly space it with time requires increasing the font size (which controls the size of the time string) but then this makes it too large with respect to the date string and then the cycle repeats.