dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit 5098085190261545b9e9ee1fb05ea17cbd5ce725
parent b32e58bbabb54eb5eeeb02ef4ffc82ace4a3f2f7
Author: regexghost <dev@regexghost.com>
Date:   Mon, 31 Aug 2026 20:20:38 +0100

(attempt for) bug fix in music-moc.sh, causing stuck 100% cpu bc process sometimes

Diffstat:
Mpanel-scripts/music-moc.sh | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/panel-scripts/music-moc.sh b/panel-scripts/music-moc.sh @@ -62,6 +62,8 @@ if ! $mocp_command -i | grep -q "State: STOP"; then song_name="$(echo "$mocp_i" | grep "^Title: " | sed 's/Title: //g')" total="$(echo "$mocp_i" | awk '/^TotalSec/ {print $2}')" current="$(echo "$mocp_i" | awk '/^CurrentSec/ {print $2}')" + [ "$current" = "" ] && exit + [ "$total" = "" ] && exit progress=$(echo "$current/$total*100" | bc -l | cut -d "." -f 1) notify-send -i "${XDG_DATA_HOME}/regexghost/panel/emblem-music-symbolic.png" "Currently Playing:" "$song_name" -h "int:value:${progress}" exit