Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.49 KB

README.md

File metadata and controls

63 lines (48 loc) · 1.49 KB

jack_xruntotal

extreme xruns

This is a simple tool that listens for JACK xruns and prints them to the terminal in a way that works really well with status bar programs such as i3status and i3blocks.

Originally forked from falkTX (thanks!)

building

git clone https://github.com/madskjeldgaard/jack_xruntotal
cd jack_xruntotal
make
chmod +x jack_xruntotal

i3blocks example config

Create a blocklets script

#!/usr/bin/zsh 
#
####################################################################
# Blocklet for i3blocks status bar showing jack status
# by Mads Kjeldgaard, 2020
# Uses https://github.com/madskjeldgaard/jack_xruntotal
####################################################################
PGRM="$HOME/code/c/xruntotal/jack_xruntotal"

# Sleep until jack is running
while [ -z $(pgrep jackd) ] 
do
	sleep 1
done

# Run program
$PGRM

xruntotal in action

Then call the script in the i3blocks config block, note the use of the persist interval. This is needed, since i3blocks is not updating this blocklet but the blocklet is looping by itself.

[xruns]
command=path/to/binary/jack_xruntotal
interval=persist
label=<span color="#427B58">xruns: </span>

Polybar example

[module/xruns]
type = custom/script
exec-if = pgrep -x jackd
format-prefix = "x"
exec = [[ $(pgrep -x jack_xruntotal) ]] && killall jack_xruntotal; jack_xruntotal
tail = true
interval=5