Merge branch 'dev' into mercury

cleanup: move ncmpc config to .old
mpd: fix checking for existing instance
status: fix launch of sb-mpdup
        pipe errors to /dev/null if net iface is missing
This commit is contained in:
David JULIEN 2022-11-14 11:07:55 +01:00
commit 306ed8998a
Signed by: swytch
GPG Key ID: 498590A3AA82A06F
3 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ eval $(dbus-launch --sh-syntax --exit-with-session)
redshift &
dunst &> /dev/null & #temp fix
# MPD daemon start (if no other user instance exists)
[ -z "$(pidof mpd)" ] && mpd
[ -z "$(pgrep -fx mpd)" ] && mpd
[ -z "$(pgrep -f sb-mpdup)" ] && sb-mpdup &
pulsemixer --set-volume 50
sbacklight set 3 &

View File

@ -18,7 +18,7 @@ case "$state" in
INTERFACE_DISABLED) str="WIFI DOWN" ;;
*) str="$(printf "NO WIFI")";;
esac
eth="$(cat /sys/class/net/enp0s31f6/operstate)"
eth="$(cat /sys/class/net/enp0s31f6/operstate &> /dev/null)"
if [ "up" = "$eth" ]; then
str="$(printf "%s / " "$str")"
fi