From 6692c47255d3dfbdbe668f6ddcb8e5d7b6aa254c Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 10 May 2024 14:25:55 -0700 Subject: upd consider studio dyafk firefox profile arkenfox userjs update --- sh/upd | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sh/upd') diff --git a/sh/upd b/sh/upd index e2a4ee0..693f323 100755 --- a/sh/upd +++ b/sh/upd @@ -8,7 +8,7 @@ all () { qb fi [ "$hostname" = xyzinsp ] && music - if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ]; then + if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ] || [ "$hostname" = xyzstudio ]; then userjs fi } @@ -118,11 +118,15 @@ fast () { userjs () { kill $(pidof "$BROWSER") + case "$hostname" in + xyzstudio) profile_dir="$HOME/.mozilla/firefox/dyafk";; + *) profile_dir="$HOME/.mozilla/firefox/xxxxxxxx.fly";; + esac # change working dir for cleaner - cd "$HOME/.mozilla/firefox/xxxxxxxx.fly" || exit + cd "$profile_dir" || exit arkenfox-cleaner -s # when multiple firefox profiles, it will prompt me to choose, which breaks automation, so I explicitly specify one profile - arkenfox-updater -s -p "$HOME/.mozilla/firefox/xxxxxxxx.fly" + arkenfox-updater -s -p "$profile_dir" } misc () { -- cgit v1.2.3-70-g09d2