QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash |
|
|
|
if ! hash lxpanelctl 2> /dev/null; then |
|
exit 0 |
|
fi |
|
|
|
CMD="lxpanelctl command volumealsabt start > /dev/null" |
|
|
|
for PID in $(pgrep -x lxpanel); do |
|
eval "$(grep -z "DISPLAY=" "/proc/$PID/environ" | tr -d '\0')" |
|
user="$(ps -p "$PID" -o uname=)" |
|
su "$user" -c "$CMD" |
|
done
|
|
|