omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Support for wallpapers in hyprlock

Open gkurts opened this issue 4 months ago • 4 comments

(closed original #1413 and opened this one to target from and to dev branch)

Adds support for showing the current theme's wallpaper on the lock screen.

This change adds a 'path = $background' entry to the hyprlock.conf file.

The theme must add a '$background = ~/.config/omarchy/current/background' line to the hyprlock.conf file in the theme folder for this to work.

If $background is not set, hyprlock simply ignores the line.

gkurts avatar Sep 04 '25 00:09 gkurts

Link to bug #1488

gkurts avatar Sep 07 '25 04:09 gkurts

This will need a migration to add it to existing hyprlock.conf files. Use grep + sed so we don't have to refresh the whole file 👌

dhh avatar Sep 07 '25 18:09 dhh

Got chya. I'll get that added to this PR this evening.

gkurts avatar Sep 07 '25 19:09 gkurts

Added migration, but to be clear, adding this line to the hyprlock.conf will not trigger the wallpaper to show on the lock screen.

The theme must add the $background = ~/.config/omarchy/current/background value into its hyprlock.conf file. I can do that as a migration for all default themes or simply leave it as an exercise for the end user and/or theme designers.

gkurts avatar Sep 07 '25 20:09 gkurts

I like leaving it for the theme designers. Don't want the default themes to use this, but happy to let extra themes go to town!

dhh avatar Sep 08 '25 09:09 dhh

Just for my learning can you explain the use of:

The theme must add a '$background = ~/.config/omarchy/current/background' line to the hyprlock.conf file in the theme folder for this to work.

In my hyprlock file I only have the following and it changes for all themes and all wallpapers.

background {
    monitor =
    path = $HOME/.config/omarchy/current/background
    ...

Just curious on the variable use.

mrpbennett avatar Sep 10 '25 08:09 mrpbennett

In my hyprlock file I only have the following and it changes for all themes and all wallpapers.

background {
    monitor =
    path = $HOME/.config/omarchy/current/background
    ...

I added blur_passes = 1 to this and it is :ok_hand:

D-Pagey avatar Sep 10 '25 12:09 D-Pagey

Sure! If the theme designer desides to apply a different wallpaper for the lock screen or something like that, they can do it by specifying $background = $HOME/.config/omarchy/current/<path-to-desired-background. This way, the omarchy hyprlock.conf will respect whatever path the theme designer gives them. Although they will probably just use the standard $HOME/.config/omarchy/current/background symlink, they have that choice.

I really only even went down this path to set the lock screen wallpaper because my daughter likes seeing the omarchy-all-hallows-eve background. 😄

Going to have to check out blur_passes!!

gkurts avatar Sep 10 '25 13:09 gkurts

Sure! If the theme designer desides to apply a different wallpaper for the lock screen or something like that, they can do it by specifying $background = $HOME/.config/omarchy/current/<path-to-desired-background. This way, the omarchy hyprlock.conf will respect whatever path the theme designer gives them. Although they will probably just use the standard $HOME/.config/omarchy/current/background symlink, they have that choice.

I really only even went down this path to set the lock screen wallpaper because my daughter likes seeing the omarchy-all-hallows-eve background. 😄

Going to have to check out blur_passes!!

Got you!! That makes sense now. Thanks for clarifying 

mrpbennett avatar Sep 10 '25 17:09 mrpbennett

I don't think this actually works, because often you need to run other background config changes like blur passes, but after playing around with this enough, I got convinced that we should just use the current background and a few blur passes. So that seems like what this was aiming for anyway 😄

dhh avatar Sep 14 '25 15:09 dhh

Got chya! I do like the simpler is better approach. Thanks for the explanation on the decision!

gkurts avatar Sep 14 '25 15:09 gkurts

@mrpbennett our suggestion made it into Omarchy v3 :grin:

D-Pagey avatar Sep 17 '25 19:09 D-Pagey

@mrpbennett our suggestion made it into Omarchy v3 :grin:

Well now I guess I can say I contributed to Omarchy! 😂😂😂

mrpbennett avatar Sep 17 '25 20:09 mrpbennett