From 8b428e8e0f8be44baea1d65326edf717a459e489 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 13 Aug 2023 20:57:28 -0500 Subject: [PATCH] Incorporates stylix bg's into hyprland --- user/style/stylix.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/user/style/stylix.nix b/user/style/stylix.nix index 1fac7b6..8ea6316 100644 --- a/user/style/stylix.nix +++ b/user/style/stylix.nix @@ -50,13 +50,14 @@ in programs.feh.enable = true; home.file.".fehbg-stylix".text = '' #!/bin/sh - feh --no-fehbg --bg-fill ''+ - pkgs.fetchurl { - url = backgroundUrl; - sha256 = backgroundSha256; - }+''; + feh --no-fehbg --bg-fill ''+config.stylix.image+''; ''; home.file.".fehbg-stylix".executable = true; + home.file.".swaybg-stylix".text = '' + #!/bin/sh + swaybg -m fill -i ''+config.stylix.image+''; + ''; + home.file.".swaybg-stylix".executable = true; home.file = { ".config/qt5ct/colors/oomox-current.conf".source = config.lib.stylix.colors { template = builtins.readFile ./oomox-current.conf.mustache; @@ -72,6 +73,15 @@ in }; ".config/qt5ct/qt5ct.conf".text = pkgs.lib.mkBefore (builtins.readFile ./qt5ct.conf); }; + home.file.".config/hypr/hyprpaper.conf".text = '' + preload = ''+config.stylix.image+'' + + wallpaper = eDP-1,''+config.stylix.image+'' + + wallpaper = HDMI-A-1,''+config.stylix.image+'' + + wallpaper = DP-1,''+config.stylix.image+'' + ''; home.packages = with pkgs; [ qt5ct pkgs.libsForQt5.breeze-qt5 ];