I would like to switch to sandbar from waybar; but honestly: I don’t quite understand how to work with fifo.
This works:
VOLUME=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
TEST="A test."
echo "all status $VOLUME $TEST" >$FIFO
But how can I run a) a script that checks the volume every second and b) another script that checks the wifi status every 10 seconds and redirect these to $FIFO?
Thank you!
Edit: The following command works very well; but I don’t whether this is the suggested and an energy efficient method as it is not possible to select different sleep intervals for different contexts.
riverctl spawn 'while true; do ~/.config/river/sandbar-status.sh; sleep 5; done'
Hi and thank you very much for your work.
I would like to switch to sandbar from waybar; but honestly: I don’t quite understand how to work with fifo.
This works:
But how can I run a) a script that checks the volume every second and b) another script that checks the wifi status every 10 seconds and redirect these to $FIFO?
Thank you!
Edit: The following command works very well; but I don’t whether this is the suggested and an energy efficient method as it is not possible to select different sleep intervals for different contexts.