gtklock icon indicating copy to clipboard operation
gtklock copied to clipboard

Preview Style / No issue

Open Morriarthy opened this issue 2 years ago • 2 comments

Is there a way/option to execute gtklock in a window (for example in hyprland) to preview the style changes I made?

Morriarthy avatar Nov 09 '23 11:11 Morriarthy

Try this:

$ gtklock -il

bhepple avatar Nov 09 '23 11:11 bhepple

Great, but it doesn't show the theme, fonts or wallpaper. Can I use it with a config/CSS-style-file like gtklock -il -c ~/.config/gtklock/style.css for example?

I answered my own question almost...

Config options -g, --gtk-theme Set GTK theme -s, --style Load CSS style file -m, --modules Load gtklock modules -b, --background Load background -t, --time-format Set time format -H, --idle-hide Hide form when idle -T, --idle-timeout Idle timeout in seconds -S, --start-hidden Start with hidden form -L, --lock-command Command to execute before locking -U, --unlock-command Command to execute after unlocking

This did the job and will help creating Screenshots/Previews for Styles I am working on.

gtklock -il -s ~/.config/gtklock/style.css -b /usr/share/sddm/themes/abstractdark-sddm-theme/background.png Example Screenshot

Thanks a lot and super cool project BTW!

Morriarthy avatar Nov 09 '23 11:11 Morriarthy