8 lines
335 B
Bash
Executable file
8 lines
335 B
Bash
Executable file
#!/bin/sh
|
|
systray=""
|
|
|
|
ps aux | grep -v grep | grep -q "$HOME/.config/scripts/record" && systray="$systray "
|
|
grep -rq 'RUNNING' /proc/asound/*/*c && systray="$systray "
|
|
grep -rq 'RUNNING' /proc/asound/*/*p && systray="$systray "
|
|
|
|
[ -n "$systray" ] && echo "[$systray ]"
|