revert to swww
This commit is contained in:
@@ -12,12 +12,12 @@
|
|||||||
|
|
||||||
#scripts
|
#scripts
|
||||||
(pkgs.writeShellScriptBin "_systemRebuild" ''
|
(pkgs.writeShellScriptBin "_systemRebuild" ''
|
||||||
${pkgs.nh}/bin/nh os switch --ask /home/nathan/Projects/System
|
${pkgs.nh}/bin/nh os switch --ask /home/nathan/Projects/Olympus
|
||||||
echo //////Enter to close//////
|
echo //////Enter to close//////
|
||||||
read
|
read
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "_homeRebuild" ''
|
(pkgs.writeShellScriptBin "_homeRebuild" ''
|
||||||
${pkgs.nh}/bin/nh home switch --ask /home/nathan/Projects/System
|
${pkgs.nh}/bin/nh home switch --ask /home/nathan/Projects/Olympus
|
||||||
echo //////Enter to close//////
|
echo //////Enter to close//////
|
||||||
read
|
read
|
||||||
'')
|
'')
|
||||||
@@ -29,18 +29,8 @@
|
|||||||
|
|
||||||
(pkgs.writeShellScriptBin "setWallpaper" ''
|
(pkgs.writeShellScriptBin "setWallpaper" ''
|
||||||
img=''$(realpath ''${1:-~/.cache/bg})
|
img=''$(realpath ''${1:-~/.cache/bg})
|
||||||
p=''$(pgrep mpvpaper)
|
${pkgs.swww}/bin/swww img ''$img
|
||||||
ext=$(echo ''$img | sed "s|\(.*\)\.\(.*\)|\2|")
|
changeColors ''$img ''$2
|
||||||
if [[ ''$ext == "jpg" || ''$ext == "png" ]]; then
|
|
||||||
${pkgs.mpvpaper}/bin/mpvpaper -f -p -o --pause '*' ''$img
|
|
||||||
else
|
|
||||||
${pkgs.mpvpaper}/bin/mpvpaper -f -p -o "loop" '*' ''$img
|
|
||||||
fi
|
|
||||||
changeColors ''$img ''$2 && \
|
|
||||||
sleep 0.4 && \
|
|
||||||
if [[ ''$p ]]; then
|
|
||||||
kill ''$p
|
|
||||||
fi
|
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "changeColors" ''
|
(pkgs.writeShellScriptBin "changeColors" ''
|
||||||
@@ -82,6 +72,7 @@
|
|||||||
'')
|
'')
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "onSystemStart" ''
|
(pkgs.writeShellScriptBin "onSystemStart" ''
|
||||||
|
${pkgs.swww}/bin/swww-daemon &
|
||||||
randWallpaper &
|
randWallpaper &
|
||||||
ags &
|
ags &
|
||||||
pypr &
|
pypr &
|
||||||
|
|||||||
Reference in New Issue
Block a user