From 0c8623b5104427817ef672028e06b6b93420e902 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sun, 13 Nov 2022 01:12:10 +0100 Subject: [PATCH 1/2] [music] fix: launch sb-mpdup at startup --- .config/X11/xprofile | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/X11/xprofile b/.config/X11/xprofile index 71069e1..1231896 100644 --- a/.config/X11/xprofile +++ b/.config/X11/xprofile @@ -10,6 +10,7 @@ redshift & dunst &> /dev/null & #temp fix # MPD daemon start (if no other user instance exists) [ ! -s "$XDG_CONFIG_HOME/mpd/pid" ] && mpd +[ -z "$(pgrep -f sb-mpdup)" ] && sb-mpdup & pulsemixer --set-volume 50 sbacklight set 3 & setbg & From abf306c99f59c8345e1c328b901c97d01a4ff76a Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sun, 13 Nov 2022 01:12:35 +0100 Subject: [PATCH 2/2] [status] fix: pipe errors to /dev/null if iface is missing --- .local/bin/statusbar/sb-internet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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