Add launch scripts for reaper, update some related ENV vars

This commit is contained in:
2025-10-03 17:37:59 -05:00
parent eb623754e6
commit 1be24fa795
9 changed files with 56 additions and 7 deletions

View File

@@ -1 +0,0 @@
# source "$XDG_CONFIG_HOME/shell/profile" # TODO: where to put this?

View File

@@ -13,9 +13,10 @@ export DIR_NOTES="$DIR_HOME_BOX/notes"
# util dirs; do not change without checking impact on xdg base dirs
export DIR_LOCAL="$HOME/.local"
export DIR_BIN="$DIR_LOCAL/bin"
export DIR_BUILD="$DIR_LOCAL/build"
export DIR_SCRIPTS="$DIR_LOCAL/scripts"
export DIR_TMP="$DIR_LOCAL/tmp"
export DIR_USER_OPT="$HOME/opt"
export DIR_USER_LIB="$DIR_LOCAL/lib"
# xdg base directory vars
export XDG_CONFIG_HOME="$HOME/.config"
@@ -34,6 +35,11 @@ export GIT_EDITOR="$EDITOR"
# obsidian
export OBSIDIAN_WORKSPACES_TO_CONFIGURE=("$DIR_NOTES")
# reaper
DIR_REAPER_PORTABLE_SHARED="$DIR_USER_OPT/reaper-portable/shared"
DIR_REAPER_PORTABLE_LINUX="$DIR_USER_OPT/reaper-portable/reaper-linux"
DIR_REAPER_PORTABLE_MACOS="$DIR_USER_OPT/reaper-portable/reaper-macos"
# clean-up of home dir
export __CF_USER_TEXT_ENCODING="0x0:0x0"

View File

@@ -29,7 +29,6 @@ alias journal="cd $DIR_HOME_BOX; $EDITOR .current-journal"
alias ncspotkeys="$EDITOR $DIR_GIT_PROJECTS/other/ncspot/doc/users.md"
# source extensions and system-specific files
[[ -e "$HOME/.profile" ]] && source "$HOME/.profile" # TODO: do i want to source .profile?
[[ -a "$ZDOTDIR/zsh-general-dev" ]] && source "$ZDOTDIR/zsh-general-dev"
[[ -a "$ZDOTDIR/zsh-life-system" ]] && source "$ZDOTDIR/zsh-life-system"

View File

@@ -0,0 +1,21 @@
#!/bin/sh
# trying the "portable install" option; using this launch script to point to that
source "$XDG_CONFIG_HOME/zsh/.zshenv"
reaper_portable_exec_linux="$DIR_REAPER_PORTABLE_LINUX/REAPER/reaper"
reaper_portable_ini_file_linux="$DIR_REAPER_PORTABLE_LINUX/reaper-config/reaper.ini"
[[ ! -x "$reaper_portable_exec_linux" ]] && {
echo "reaper missing or not executable: $reaper_portable_exec_linux" >&2
exit 1
}
[[ ! -r "$reaper_portable_ini_file_linux" ]] && {
echo "reaper.ini missing or not readable: $reaper_portable_ini_file_linux" >&2
exit 1
}
nohup \
$reaper_portable_exec_linux \
-cfgfile $reaper_portable_ini_file_linux \
> /dev/null 2>&1 \
&

View File

@@ -0,0 +1,20 @@
#!/bin/sh
# trying the "portable install" option; using this launch script to point to that
source "$XDG_CONFIG_HOME/zsh/.zshenv"
reaper_portable_exec_macos="$DIR_REAPER_PORTABLE_MACOS/REAPER.app/Contents/MacOS/REAPER"
reaper_portable_ini_file_macos="$DIR_REAPER_PORTABLE_MACOS/reaper.ini"
[[ ! -x "$reaper_portable_exec_macos" ]] && {
echo "reaper missing or not executable: $reaper_portable_exec_macos" >&2
exit 1
}
[[ ! -r "$reaper_portable_ini_file_macos" ]] && {
echo "reaper.ini missing or not readable: $reaper_portable_ini_file_macos" >&2
exit 1
}
nohup \
$reaper_portable_exec_macos \
> /dev/null 2>&1 \
&