Commit for generation 120

This commit is contained in:
2024-09-27 18:27:27 -04:00
parent 75d48667cb
commit 381682a281
2 changed files with 12 additions and 3 deletions

View File

@@ -71,6 +71,15 @@ else
mkdir -p "$comppath"
fi
preexec() {
if [[ ! -f "/tmp/cmdcounter_$(whoami)" ]]; then
echo 0 > "/tmp/cmdcounter_$(whoami)"
fi
cmd_count="$(cat /tmp/cmdcounter_$(whoami))"
cmd_count=$((cmd_count + 1))
echo "$cmd_count" > /tmp/cmdcounter_$(whoami))"
}
snd_restart() {
echo -n "Restarting wireplumber service... "
systemctl --user restart wireplumber; code1=$? && echo "SUCCESS" || echo "FAILED"