diff --git a/.config/X11/xprofile b/.config/X11/xprofile index 72ebe3a..7c66c5f 100644 --- a/.config/X11/xprofile +++ b/.config/X11/xprofile @@ -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 & diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index 0c8d157..812238e 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -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