export LESS=RXij12
export SYSTEMD_LESS=$LESS
+
export NNN_COLORS=2136
export SL_FILES_DIR=/b/ds/sl/.iank
# 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)"
;;
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
# 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