stylix icon indicating copy to clipboard operation
stylix copied to clipboard

hyprland: init `hyprpaper` service

Open trueNAHO opened this issue 1 year ago • 4 comments

About

This is a tracking issue for initiating the hyprpaper service.

Steps

  • [x] https://github.com/danth/stylix/pull/377
  • [ ] unload wallpaper

Unresolved Questions

  • [ ] How to unload the wallpaper: https://github.com/danth/stylix/pull/377#issuecomment-2143073614?

trueNAHO avatar May 31 '24 22:05 trueNAHO

would there be a way to add more images? (e.g second monitor)

services.hyprpaper.settings = { preload = [ "${config.stylix.image}" ]; wallpaper = [ ",${config.stylix.image}" ]; };

the wallpaper syntax is "monitor,image" where monitor has a couple identifiers to use (e.g DP-1, see Monitors on Hyprland wiki) where ,image matches all monitors with nothing already specified

my current hm setup is like this

services = {
     hyprpaper = {
       enable = true;
       settings = {
         preload = [
           "/home/repparw/Pictures/gruvbox.jpg"
           "/home/repparw/src/kbd/docs/layout_wp.png"
         ];
         wallpaper = [
           "HDMI-A-1,contain:/home/repparw/src/kbd/docs/layout_wp.png"
           ",/home/repparw/Pictures/gruvbox.jpg"
         ];
       };
     };

Dunno if this should be at this level, or it would require a refactor of stylix.image... seems overkill, maybe

repparw avatar Apr 27 '25 15:04 repparw

Per-monitor wallpapers aren't widely implemented and I have a feeling that when they are, each program will have its own way of selecting which monitor to apply to, so it would be difficult to create a Stylix option which supports all of them simultaneously.

danth avatar Apr 27 '25 16:04 danth

so it would be better to do a PR for each one, then? I could look into hyprpaper as it's the one I use. Dunno if someone has an idea of what to name the options, in the interest of trying to make it consistent between targets. I guess it could be a pair with monitor identifier and which image to use.

Also, is there any way to set a value different to stylix.image in some targets? e.g use different wallpaper in lock screen? don't know if there's a nix lang way of that

repparw avatar Apr 27 '25 16:04 repparw

so it would be better to do a PR for each one, then? I could look into hyprpaper as it's the one I use. Dunno if someone has an idea of what to name the options, in the interest of trying to make it consistent between targets. I guess it could be a pair with monitor identifier and which image to use.

Since we currently, do not support multiple stylix.images, I am unsure whether we should support this use case for now:

  • [ ] (6) Implement slideshow with post-processing capabilities
    • https://github.com/danth/stylix/issues/63
    • https://github.com/danth/stylix/pull/477#issuecomment-2254170449
    • https://github.com/danth/stylix/pull/477#issuecomment-2304904560

-- https://github.com/danth/stylix/issues/534

Even once we support specifying a directory containing images, would it not be better for end-users to implement this in their setup? It seems like we would just interface every possible use case. IIUC, the specific images are meant to be hard-coded anyway, rendering a general solution somewhat pointless.

Also, is there any way to set a value different to stylix.image in some targets? e.g use different wallpaper in lock screen? don't know if there's a nix lang way of that

Not yet:

  • [ ] (5) Support individual module customizations
    • https://github.com/danth/stylix/issues/208
    • https://github.com/danth/stylix/issues/685

-- https://github.com/danth/stylix/issues/534

trueNAHO avatar Apr 30 '25 14:04 trueNAHO