From 1be24fa795e9162070a2b904e7fa583c6bd96290 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 3 Oct 2025 17:37:59 -0500 Subject: [PATCH] Add launch scripts for reaper, update some related ENV vars --- README.md | 4 +--- make_dirs.sh | 8 ++++++- src_files/.config/zsh/.zprofile | 1 - src_files/.config/zsh/.zshenv | 8 ++++++- src_files/.config/zsh/.zshrc | 1 - .../.local/bin/{gimp-launch => launch-gimp} | 0 src_files/.local/bin/launch-reaper | 21 +++++++++++++++++++ .../{gimp-launch => launch-gimp} | 0 src_files/bin_overrides_macos/launch-reaper | 20 ++++++++++++++++++ 9 files changed, 56 insertions(+), 7 deletions(-) rename src_files/.local/bin/{gimp-launch => launch-gimp} (100%) create mode 100755 src_files/.local/bin/launch-reaper rename src_files/bin_overrides_macos/{gimp-launch => launch-gimp} (100%) create mode 100755 src_files/bin_overrides_macos/launch-reaper diff --git a/README.md b/README.md index a68e955..6856155 100644 --- a/README.md +++ b/README.md @@ -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? diff --git a/make_dirs.sh b/make_dirs.sh index 1886db0..1aa1da3 100755 --- a/make_dirs.sh +++ b/make_dirs.sh @@ -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 diff --git a/src_files/.config/zsh/.zprofile b/src_files/.config/zsh/.zprofile index 2e3bd9e..e69de29 100644 --- a/src_files/.config/zsh/.zprofile +++ b/src_files/.config/zsh/.zprofile @@ -1 +0,0 @@ -# source "$XDG_CONFIG_HOME/shell/profile" # TODO: where to put this? diff --git a/src_files/.config/zsh/.zshenv b/src_files/.config/zsh/.zshenv index acaf190..c824788 100644 --- a/src_files/.config/zsh/.zshenv +++ b/src_files/.config/zsh/.zshenv @@ -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" diff --git a/src_files/.config/zsh/.zshrc b/src_files/.config/zsh/.zshrc index 9be07dd..f298b07 100644 --- a/src_files/.config/zsh/.zshrc +++ b/src_files/.config/zsh/.zshrc @@ -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" diff --git a/src_files/.local/bin/gimp-launch b/src_files/.local/bin/launch-gimp similarity index 100% rename from src_files/.local/bin/gimp-launch rename to src_files/.local/bin/launch-gimp diff --git a/src_files/.local/bin/launch-reaper b/src_files/.local/bin/launch-reaper new file mode 100755 index 0000000..e404150 --- /dev/null +++ b/src_files/.local/bin/launch-reaper @@ -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 \ + & diff --git a/src_files/bin_overrides_macos/gimp-launch b/src_files/bin_overrides_macos/launch-gimp similarity index 100% rename from src_files/bin_overrides_macos/gimp-launch rename to src_files/bin_overrides_macos/launch-gimp diff --git a/src_files/bin_overrides_macos/launch-reaper b/src_files/bin_overrides_macos/launch-reaper new file mode 100755 index 0000000..0c62574 --- /dev/null +++ b/src_files/bin_overrides_macos/launch-reaper @@ -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 \ + &