Merge branch 'dev' into venus

status: pipe sb-internet errors to /dev/null
        launch sb-mpdup at startup
This commit is contained in:
David JULIEN 2022-11-13 01:15:05 +01:00
commit fa32f258e1
Signed by: swytch
GPG Key ID: 498590A3AA82A06F
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ dunst &> /dev/null & #temp fix
gentoo-pipewire-launcher && wpctl set-volume @DEFAULT_AUDIO_SINK@ 50% &
# MPD daemon start (if no other user instance exists)
[ ! -s "$XDG_CONFIG_HOME/mpd/pid" ] && mpd
[ -z "$(pgrep -f sb-mpdup)" ] && sb-mpdup &
sbacklight set 3 &
setbg &
dwmblocks &

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