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:
commit
306ed8998a
|
@ -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 &
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue