Files
barnard/extras/barnard_status__-__key_t.sh

10 lines
223 B
Bash
Executable File

#!/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