Skip to content

madskjeldgaard/jack_xruntotal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

display total number of xruns from jack in a status bar friendly way

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.1%
  • Makefile 6.9%