Add launch scripts for reaper, update some related ENV vars
This commit is contained in:
@@ -24,6 +24,4 @@
|
||||
### todo items
|
||||
- choose window manager for linux, then configure
|
||||
- config for: terminal (ghostty); shell; mpd, mpc, ncmpcpp; mpv
|
||||
- decide on and implement approach for languages and versioning
|
||||
- language-specific? asdf? no, not asdf, mise seems better from what i hear so far
|
||||
- docker? or alternatives like podman? any license concerns?
|
||||
- decide on docker? or alternatives like podman? any license concerns?
|
||||
|
@@ -5,9 +5,10 @@ source ./src_files/.config/zsh/.zshenv # ensure env vars set for use below
|
||||
# some standard/common directories, some overlap/use in XDG directories
|
||||
[[ ! -d "$DIR_LOCAL" ]] && mkdir -p "$DIR_LOCAL"
|
||||
[[ ! -d "$DIR_BIN" ]] && mkdir -p "$DIR_BIN"
|
||||
[[ ! -d "$DIR_BUILD" ]] && mkdir -p "$DIR_BUILD"
|
||||
[[ ! -d "$DIR_SCRIPTS" ]] && mkdir -p "$DIR_SCRIPTS"
|
||||
[[ ! -d "$DIR_TMP" ]] && mkdir -p "$DIR_TMP"
|
||||
[[ ! -d "$DIR_USER_OPT" ]] && mkdir -p "$DIR_USER_OPT"
|
||||
[[ ! -d "$DIR_USER_LIB" ]] && mkdir -p "$DIR_USER_LIB"
|
||||
|
||||
# directories related to XDG Base Directory specification
|
||||
[[ ! -d "$XDG_CONFIG_HOME" ]] && mkdir -p "$XDG_CONFIG_HOME"
|
||||
@@ -23,3 +24,8 @@ source ./src_files/.config/zsh/.zshenv # ensure env vars set for use below
|
||||
[[ ! -d "$DIR_GIT_PROJECTS" ]] && mkdir -p $DIR_GIT_PROJECTS
|
||||
[[ ! -d "$DIR_GIT_PROJECTS/me" ]] && mkdir -p $DIR_DEV/git/me
|
||||
[[ ! -d "$DIR_GIT_PROJECTS/other" ]] && mkdir -p $DIR_DEV/git/other
|
||||
|
||||
# directories for music/audio production
|
||||
[[ ! -d "$DIR_REAPER_PORTABLE_SHARED" ]] && mkdir -p $DIR_REAPER_PORTABLE_SHARED
|
||||
[[ ! -d "$DIR_REAPER_PORTABLE_LINUX" ]] && mkdir -p $DIR_REAPER_PORTABLE_LINUX
|
||||
[[ ! -d "$DIR_REAPER_PORTABLE_MACOS" ]] && mkdir -p $DIR_REAPER_PORTABLE_MACOS
|
||||
|
@@ -1 +0,0 @@
|
||||
# source "$XDG_CONFIG_HOME/shell/profile" # TODO: where to put this?
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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"
|
||||
|
||||
|
21
src_files/.local/bin/launch-reaper
Executable file
21
src_files/.local/bin/launch-reaper
Executable 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 \
|
||||
&
|
20
src_files/bin_overrides_macos/launch-reaper
Executable file
20
src_files/bin_overrides_macos/launch-reaper
Executable 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 \
|
||||
&
|
Reference in New Issue
Block a user