#!/usr/bin/env bash # Script for fenrir # Replace USER with your user name fifoPath=/home/USER/.config/barnard/cmd [[ -p $fifoPath ]] || exit 0 printf '%s\n' status | timeout 1s sudo -u USER tee "$fifoPath" &> /dev/null