From: Ian Kelling Date: Thu, 18 Apr 2024 01:57:52 +0000 (-0400) Subject: minor fixes X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=7b33a0e88d9ccdaf8601aa77f9fc597d592b4c10;p=distro-setup minor fixes --- diff --git a/brc b/brc index ad99e0f..2ffd91c 100644 --- a/brc +++ b/brc @@ -315,6 +315,7 @@ export PROFILE_TASKS_TASK_OUTPUT_LIMIT=100 export LESS=RXij12 export SYSTEMD_LESS=$LESS + export NNN_COLORS=2136 export SL_FILES_DIR=/b/ds/sl/.iank @@ -3181,9 +3182,13 @@ if $use_color && type -p tput &>/dev/null; then # https://github.com/trapd00r/LS_COLORS # I would like if there was something similar for light. + # https://www.bigsoft.co.uk/blog/2008/04/11/configuring-ls_colors + # change the hard to read turqouise. + # defaults dircolors --print-database. + # the default bold green is too light. # this explains the codes: https://gist.github.com/thomd/7667642 - export LS_COLORS=ex=1 + export LS_COLORS="ex=1:ln=00;31" term_bold="$(tput bold)" term_red="$(tput setaf 1)" diff --git a/obs-clip b/obs-clip index 7d075a0..60bafda 100755 --- a/obs-clip +++ b/obs-clip @@ -52,10 +52,20 @@ case $type in ;; esac +found=false + p=$(cat /p/obs-ws-pass) # note, if the desktop audio is already on, this will do the wrong thing. # obs-cmd needs more commands. But, I don't use desktop audio for anything # else atm. -obs-cmd -w obsws://localhost:4455/$p toggle-mute 'Desktop Audio' +if pgrep '^obs$' &>/dev/null; then + # this is so the script keeps working when obs is not running, but + # also doesn't ignore errors. + found=true + obs-cmd -w obsws://localhost:4455/$p toggle-mute 'Desktop Audio' +fi mpv --profile=a $clip ||: -obs-cmd -w obsws://localhost:4455/$p toggle-mute 'Desktop Audio' + +if $found; then + obs-cmd -w obsws://localhost:4455/$p toggle-mute 'Desktop Audio' +fi diff --git a/prof-tail b/prof-tail index 638e576..aa022bc 100644 --- a/prof-tail +++ b/prof-tail @@ -20,12 +20,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# hacky way to kill off old leftover processes +pkill -O 1 -x 'prof-tail' + set -e; . /usr/local/lib/bash-bear; set +e # kill 0 doesn't seem to be documented in man bash, but it kills the # background processes. # https://unix.stackexchange.com/questions/67532/what-does-kill-0-do-actually/67552 -trap "kill 0" EXIT +# commented out because the way I exit prof-tail is from an ssh disconnect from +# the connection dying or killing konsole, and this has no effect on either. +#trap "kill 0" EXIT + xmpp_users=( anoukr