Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallpaper on Tiling WMs question #373

Open
vod3 opened this issue May 20, 2024 · 2 comments
Open

Wallpaper on Tiling WMs question #373

vod3 opened this issue May 20, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation feature A new feature or a feature request

Comments

@vod3
Copy link

vod3 commented May 20, 2024

Hi there,
It's not clear to me how stylix is setting the wallpaper. I'm currently using Hyprland with wbg as a wallpaper setter, but after applying a theme everything changes, only the wallpaper stays the same. Am I supposed to deactivate wbg, has stylix an included wallpaper daemon for wayland?

Furthermore, under Tips and Tricks in the docs there seems to be a interesting function. How is the pixel function working? Where can I find the generated wallpaper for activating it? is "base0A" taking a color-variable from the theme or is it just naming the wallpaper? The docs are not clear on all of my points I'm afraid...

{ pkgs, config, ... }:

{
  stylix = {
    image = config.lib.stylix.pixel "base0A";
    base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml";
  };
}

Thanks for your time!

@trueNAHO
Copy link
Collaborator

It's not clear to me how stylix is setting the wallpaper. I'm currently using Hyprland with wbg as a wallpaper setter, but after applying a theme everything changes, only the wallpaper stays the same. Am I supposed to deactivate wbg, has stylix an included wallpaper daemon for wayland?

#102 was meant to extend wallpaper capabilities.

Furthermore, under Tips and Tricks in the docs there seems to be a interesting function. How is the pixel function working? Where can I find the generated wallpaper for activating it? is "base0A" taking a color-variable from the theme or is it just naming the wallpaper?

The best pixel documentation would the function itself:

# Generate a PNG image containing a named color
config.lib.stylix.pixel = color:
pkgs.runCommand "${color}-pixel.png" {
color = config.lib.stylix.colors.withHashtag.${color};
} "${pkgs.imagemagick}/bin/convert xc:$color png32:$out";

The docs are not clear on all of my points I'm afraid...

Yes, the documentation still has some ways to go.

@trueNAHO trueNAHO added documentation Improvements or additions to documentation feature A new feature or a feature request labels May 26, 2024
@danth
Copy link
Owner

danth commented Jun 2, 2024

Built in support for wallpapers on Hyprland is being worked on in #377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature A new feature or a feature request
Projects
None yet
Development

No branches or pull requests

3 participants