swaywm / swaylock

Screen locker for Wayland
MIT License
853 stars 201 forks source link

Request: add an example config #366

Open SaadAhmedGit opened 4 months ago

SaadAhmedGit commented 4 months ago

Hi, an example config for swaylock would make configuring it easier than reading through the man pages

rdbo commented 3 months ago

Up for this. I was reading through the man page and found out it has config files, but I didn't find an example in the repository

tjex commented 1 week ago

There are waaaaay too many config options for a screen lock. And the most frustrating thing is that I can't find the option to color the ring segment that shows when typing!! So yeah, a config would be excellent.

edit: found it, --key-hl-color 344252

tjex commented 1 week ago

As it happened, I made a background when I was still on mac, and it's just freaken perfect with this lockprogram. Here for others to use. Destiny looks like a penguin?

The below keeps just the circle, without text. Slate blue is verifying, rose red is backspacing, yellow is cleared.

    bindsym $mod+Escape exec swaylock --ring-color 121417 --inside-color 000000 \
        --inside-clear-color 000000 --ring-clear-color 'bc9f76' \
        --inside-ver-color 000000 --ring-ver-color 344252 \
        --inside-wrong-color 000000 --ring-wrong-color 'bf8585' \
        --bs-hl-color bf8585 --font='FiraCode Nerd Fon't \
        --indicator-idle-visible --indicator-radius 80 --key-hl-color 344252 \
        -Ki ~/images/wallpapers/zen-circle-wallpaper-preblur.png

zen-circle-wallpaper-preblur