feat(hyprpaper): get wallpaper with fetchurl and set config declaratively
This commit is contained in:
parent
f7c34c10db
commit
7a3fb64fcc
4 changed files with 23 additions and 6 deletions
|
@ -15,6 +15,11 @@ final: prev: {
|
|||
hash = "sha256-3tKjKn5IHIByj+xgi2AIL1vZANlb0vlYJsPjH6BHGxM=";
|
||||
};
|
||||
|
||||
wallpaper = prev.fetchurl {
|
||||
url = "https://github.com/aynp/dracula-wallpapers/blob/main/Art/4k/Waves%201.png?raw=true";
|
||||
hash = "sha256-f9FwSOSvqTeDj4bOjYUQ6TM+/carCD9o5dhg/MnP/lk=";
|
||||
};
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "dracula";
|
||||
repo = "gtk";
|
||||
|
@ -28,21 +33,33 @@ final: prev: {
|
|||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# Git colors
|
||||
cp -a ${git-colors}/config/gitconfig ./git-colors
|
||||
chmod 777 ./git-colors
|
||||
|
||||
line=$(grep -n 'Dracula Dark Theme' ./git-colors | cut -d: -f1)
|
||||
sed -i "1,$((line-1))d" ./git-colors
|
||||
|
||||
mkdir -p $out
|
||||
cp -a ./git-colors $out
|
||||
|
||||
# Plymouth
|
||||
cp -a ${plymouth}/dracula ./dracula
|
||||
chmod 777 ./dracula
|
||||
|
||||
sed -i "s@\/usr\/@$out\/@" ./dracula/dracula.plymouth
|
||||
|
||||
mkdir -p $out/share/plymouth/themes
|
||||
cp -a ./dracula $out/share/plymouth/themes/
|
||||
|
||||
# Wallpapers
|
||||
cp -a ${wallpaper} ./waves.png
|
||||
|
||||
mkdir -p $out/wallpapers
|
||||
cp -a ./waves.png $out/wallpapers/
|
||||
|
||||
|
||||
# -------------------------------------------
|
||||
mkdir -p $out/share/themes/Dracula
|
||||
cp -a {assets,cinnamon,gnome-shell,gtk-2.0,gtk-3.0,gtk-3.20,gtk-4.0,index.theme,metacity-1,unity,xfwm4} $out/share/themes/Dracula
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
final: prev: {
|
||||
spotifywm = prev.spotifywm.overrideAttrs (oldAttrs: rec {
|
||||
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
preload = ~/Pictures/BG/bonzai.jpg
|
||||
wallpaper = eDP-1, ~/Pictures/BG/bonzai.jpg
|
|
@ -45,8 +45,12 @@ in
|
|||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"hypr/main.conf".source = symlink "${configDir}/hypr/main.conf";
|
||||
"hypr/hyprpaper.conf".source = symlink "${configDir}/hypr/hyprpaper.conf";
|
||||
"hypr/main.conf".source = symlink "${configDir}/hypr/main.conf";
|
||||
|
||||
"hypr/hyprpaper.conf".text = ''
|
||||
preload = ${pkgs.dracula-theme}/wallpapers/waves.png
|
||||
wallpaper = eDP-1, ${pkgs.dracula-theme}/wallpapers/waves.png
|
||||
'';
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
|
|
Loading…
Reference in a new issue