diff options
| author | 2024-10-03 19:08:44 -0400 | |
|---|---|---|
| committer | 2024-10-04 14:19:40 -0400 | |
| commit | 0bf9b26b87075448d49482fe4411739af765d872 (patch) | |
| tree | e3f0e3312a92e5250fa72b410adb370734deca04 /taro/scripts | |
| parent | acd44bb898996ff4e36b39b10e870e40bcaf2634 (diff) | |
| download | mauri-0bf9b26b87075448d49482fe4411739af765d872.tar.gz mauri-0bf9b26b87075448d49482fe4411739af765d872.tar.bz2 mauri-0bf9b26b87075448d49482fe4411739af765d872.zip | |
Update codebase
Bring up-to-date with my other projects. Wallpaper engine behavior is
mostly unchanged.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'taro/scripts')
| -rwxr-xr-x | taro/scripts/kill_wallpaper.sh | 11 | ||||
| -rwxr-xr-x | taro/scripts/make_prefix.sh | 25 | ||||
| -rwxr-xr-x | taro/scripts/run_wallpaper.sh | 20 |
3 files changed, 56 insertions, 0 deletions
diff --git a/taro/scripts/kill_wallpaper.sh b/taro/scripts/kill_wallpaper.sh new file mode 100755 index 0000000..04f01f8 --- /dev/null +++ b/taro/scripts/kill_wallpaper.sh @@ -0,0 +1,11 @@ +#! /usr/bin/env sh + +USE_MAURI=$1 + +if [ "$USE_MAURI" = "true" ]; then + pkill mauri +else + export WINEPREFIX=$2 + wineserver -k + wineserver -w +fi diff --git a/taro/scripts/make_prefix.sh b/taro/scripts/make_prefix.sh new file mode 100755 index 0000000..9facae2 --- /dev/null +++ b/taro/scripts/make_prefix.sh @@ -0,0 +1,25 @@ +#! /usr/bin/env sh + +export WINEPREFIX=$1 + +CONFIG_DIR=$2 + +install_dxvk() { + mkdir -p $CONFIG_DIR/tmp && cd $CONFIG_DIR/tmp + VER=$(curl https://raw.githubusercontent.com/doitsujin/dxvk/master/RELEASE) + curl -OL https://github.com/doitsujin/dxvk/releases/download/v$VER/dxvk-$VER.tar.gz + tar xf dxvk-$VER.tar.gz + cd dxvk-$VER + curl -OL https://gist.githubusercontent.com/doitsujin/1652e0e3382f0e0ff611e70142684d01/raw/4b80903eb4a8c1033750175de4ebe64685725a3e/setup_dxvk.sh + chmod +x ./setup_dxvk.sh + ./setup_dxvk.sh . install + rm -r $CONFIG_DIR/tmp +} + +if [ ! -d $WINEPREFIX ]; then + wineboot --init + winecfg -v win10 + wineserver -w + install_dxvk + wineserver -w +fi diff --git a/taro/scripts/run_wallpaper.sh b/taro/scripts/run_wallpaper.sh new file mode 100755 index 0000000..5ce8bc6 --- /dev/null +++ b/taro/scripts/run_wallpaper.sh @@ -0,0 +1,20 @@ +#! /usr/bin/env sh + +USE_MAURI=$1 + +export mesa_glthread=true + +if [ "$USE_MAURI" = "true" ]; then + if [ "$5" = "true" ]; then + exec mauri -p $6/scene.pkg -w $7 -h $8 -m $3 + else + exec mauri -d $6 -w $7 -h $8 -m $3 + fi +else + export WINEPREFIX=$2 + wineserver -k + wineserver -w + export WINEMONITOR=$3 + exec $4 ../../wallpaper_engine/wallpaper64.exe -control openWallpaper -file $6/project.json \ + -playInWindow "wallpaper" -width $7 -height $8 > $9 2>&1 +fi |