hyprpaper: move wallpapers to .local/share/backgrounds
|
@ -27,4 +27,6 @@
|
|||
templates = lib.mkDefault "${config.home.homeDirectory}/tmplts";
|
||||
extraConfig = {XDG_SRC_DIR = "${config.home.homeDirectory}/src";};
|
||||
};
|
||||
|
||||
xdg.dataFile."backgrounds/".source = ./files/wallpapers;
|
||||
}
|
||||
|
|
|
@ -18,26 +18,5 @@
|
|||
desktopEnv.hyprland.hyprpaper.randomWallpaper.enable = lib.mkDefault true;
|
||||
|
||||
xdg.configFile."hypr/hyprpaper.conf".source = ./hyprpaper.conf;
|
||||
|
||||
xdg.configFile."hypr/wallpapers/evening-sky.png".source =
|
||||
./wallpapers/evening-sky.png;
|
||||
xdg.configFile."hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg".source =
|
||||
./wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-6d7xmx.jpg".source =
|
||||
./wallpapers/wallhaven-6d7xmx.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-83v96o.png".source =
|
||||
./wallpapers/wallhaven-83v96o.png;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-285rjm.jpg".source =
|
||||
./wallpapers/wallhaven-285rjm.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-4219wy.jpg".source =
|
||||
./wallpapers/wallhaven-4219wy.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-4267k6.jpg".source =
|
||||
./wallpapers/wallhaven-4267k6.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-d6ggel.jpg".source =
|
||||
./wallpapers/wallhaven-d6ggel.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-q2o2w5.jpg".source =
|
||||
./wallpapers/wallhaven-q2o2w5.jpg;
|
||||
xdg.configFile."hypr/wallpapers/wallhaven-zm7x5o.jpg".source =
|
||||
./wallpapers/wallhaven-zm7x5o.jpg;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}: let
|
||||
hyprpaper-random = pkgs.writeShellScriptBin "hyprpaper-random" ''
|
||||
directory=${config.home.homeDirectory}/.config/hypr/wallpapers
|
||||
directory=${config.home.homeDirectory}/.local/share/backgrounds
|
||||
monitor=`hyprctl monitors | grep Monitor | awk '{print $2}'`
|
||||
|
||||
if [ -d "$directory" ]; then
|
||||
|
@ -13,7 +13,7 @@
|
|||
sleep 30
|
||||
hyprctl hyprpaper unload all
|
||||
for m in ''${monitor[@]}; do
|
||||
random_background=$(ls $directory/* | shuf -n 1)
|
||||
random_background=$(ls $directory/*.{png,jpg} | shuf -n 1)
|
||||
hyprctl hyprpaper preload $random_background
|
||||
hyprctl hyprpaper wallpaper "$m,$random_background"
|
||||
done
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
preload = ~/.config/hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg
|
||||
preload = ~/.local/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg
|
||||
|
||||
wallpaper = ,~/.config/hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg
|
||||
wallpaper = ,~/.local/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg
|
||||
|
||||
splash = false
|
Before Width: | Height: | Size: 4.3 MiB After Width: | Height: | Size: 4.3 MiB |
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 716 KiB After Width: | Height: | Size: 716 KiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 3 MiB After Width: | Height: | Size: 3 MiB |
Before Width: | Height: | Size: 4.6 MiB After Width: | Height: | Size: 4.6 MiB |
Before Width: | Height: | Size: 5.6 MiB After Width: | Height: | Size: 5.6 MiB |
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 4.7 MiB After Width: | Height: | Size: 4.7 MiB |
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 4.1 MiB |