test
@@ -23,8 +23,8 @@
|
||||
|
||||
(pkgs.writeShellScriptBin "setWallpaper" ''
|
||||
|
||||
if [[ ! -d /tmp/nathan ]]; then
|
||||
mkdir /tmp/nathan
|
||||
if [[ ! -d /tmp/aurora ]]; then
|
||||
mkdir /tmp/aurora
|
||||
fi
|
||||
|
||||
img=''$(realpath "''${1:-$(find ~/Pictures/Wallpaper/* | rofi -dmenu)}")
|
||||
@@ -33,15 +33,13 @@
|
||||
out=''${3:-/dev/null}
|
||||
|
||||
if [[ ''$ext == "gif" || ''$ext == "mp4" ]]; then
|
||||
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/nathan/tmp.jpg >> ''$out
|
||||
cp /tmp/nathan/tmp.jpg /tmp/nathan/tmp2.jpg
|
||||
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/aurora/tmp.jpg >> ''$out
|
||||
pidof mpvpaper >> $out && pkill mpvpaper
|
||||
${pkgs.swww}/bin/swww img /tmp/nathan/tmp.jpg -t wipe >> ''$out
|
||||
${pkgs.swww}/bin/swww img /tmp/aurora/tmp.jpg -t wipe >> ''$out
|
||||
sleep 0.6
|
||||
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
|
||||
rm /tmp/nathan/tmp2.jpg
|
||||
else
|
||||
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" /tmp/nathan/tmp.jpg >> ''$out
|
||||
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" /tmp/aurora/tmp.jpg >> ''$out
|
||||
pidof mpvpaper >> $out && pkill mpvpaper
|
||||
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
|
||||
fi
|
||||
@@ -83,8 +81,8 @@
|
||||
|
||||
(pkgs.writeShellScriptBin "onSystemStart" ''
|
||||
|
||||
if [[ ! -d /tmp/nathan ]]; then
|
||||
mkdir /tmp/nathan
|
||||
if [[ ! -d /tmp/aurora ]]; then
|
||||
mkdir /tmp/aurora
|
||||
fi
|
||||
|
||||
if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
programs = {
|
||||
steam.enable = mkDefault true;
|
||||
hyprland.enable = mkDefault true;
|
||||
partition-manager.enable = mkDefault true;
|
||||
};
|
||||
|
||||
|
||||
|
||||
BIN
system/etc/Wallpaper/Tron.jpg
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
system/etc/Wallpaper/bluescape.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
system/etc/Wallpaper/galaxy.jpg
Normal file
|
After Width: | Height: | Size: 1007 KiB |
BIN
system/etc/Wallpaper/kurisu.gif
Normal file
|
After Width: | Height: | Size: 110 MiB |
BIN
system/etc/Wallpaper/kurisu.jpg
Normal file
|
After Width: | Height: | Size: 191 KiB |
BIN
system/etc/Wallpaper/llenn.png
Normal file
|
After Width: | Height: | Size: 874 KiB |
BIN
system/etc/Wallpaper/megumin.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
system/etc/Wallpaper/megumin1.gif
Normal file
|
After Width: | Height: | Size: 48 MiB |
BIN
system/etc/Wallpaper/megumin2.gif
Normal file
|
After Width: | Height: | Size: 203 MiB |
BIN
system/etc/Wallpaper/ngnl.jpg
Normal file
|
After Width: | Height: | Size: 670 KiB |
BIN
system/etc/Wallpaper/orangescape.jpg
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
system/etc/Wallpaper/pink_fc.mp4
Normal file
BIN
system/etc/Wallpaper/rezero.gif
Normal file
|
After Width: | Height: | Size: 140 MiB |
BIN
system/etc/Wallpaper/sao.gif
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
system/etc/Wallpaper/sao.png
Normal file
|
After Width: | Height: | Size: 2.8 MiB |
BIN
system/etc/Wallpaper/sinon.gif
Normal file
|
After Width: | Height: | Size: 36 MiB |
@@ -1,10 +1,26 @@
|
||||
{ ... }: {
|
||||
|
||||
|
||||
flake.nixosModules.default = { ... }: {
|
||||
flake.nixosModules.default = { lib, ... }: {
|
||||
|
||||
config = {
|
||||
|
||||
environment.etc = lib.mkMerge [
|
||||
(builtins.listToAttrs
|
||||
(builtins.map
|
||||
(n: {
|
||||
name = "Wallpaper/${n}";
|
||||
value = {
|
||||
source = ./Wallpaper/${n};
|
||||
};
|
||||
})
|
||||
(builtins.attrNames
|
||||
(builtins.readDir ./Wallpaper)
|
||||
)
|
||||
)
|
||||
)
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||