1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-10-09 06:19:08 +00:00

[polybar] Improve polytasks

This commit is contained in:
2025-09-30 18:23:00 +02:00
parent 9fd1c3757a
commit 007c830330
2 changed files with 13 additions and 23 deletions

View File

@@ -29,19 +29,19 @@ function kill_polybar
function compile_src
{
pushd $POLYBAR_PATH/scripts/src/polytasks || return
pushd $POLYBAR_PATH/scripts/src/polytasks > /dev/null || return
echo "Compiling polytasks..."
go build -buildvcs=false -ldflags="-s -w" -o $POLYBAR_PATH/scripts/polytasks .
popd || return
popd > /dev/null || return
}
function launch_polybar
{
compile_src
for monitor in $(polybar --list-monitors | cut -d":" -f1); do
export MONITOR=$monitor
polybar top -c $POLYBAR_PATH/bar.ini >/dev/null &
done
compile_src
wait_for_polybar started
}