diff --git a/.local/bin/statusbar/sb-battery b/.local/bin/statusbar/sb-battery index 4e8f04a..6b8b454 100755 --- a/.local/bin/statusbar/sb-battery +++ b/.local/bin/statusbar/sb-battery @@ -1,11 +1,12 @@ #!/usr/bin/sh # Loop through all attached batteries and format the info +# plan to rewrite. WIP # SIGNAL 11 case $BLOCK_BUTTON in 1) notify-send "Battery condition" "blabla" pkill -RTMIN+11 dwmblocks;; - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0";; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; esac for battery in /sys/class/power_supply/BAT?*; do diff --git a/.local/bin/statusbar/sb-date b/.local/bin/statusbar/sb-date index 27a9ecf..8f8ab78 100755 --- a/.local/bin/statusbar/sb-date +++ b/.local/bin/statusbar/sb-date @@ -3,7 +3,7 @@ case $BLOCK_BUTTON in 1) pkill -RTMIN+12 dwmblocks;; - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; esac color=#83a598 sb-show $color ' ' $(date '+%d/%m(%a)') diff --git a/.local/bin/statusbar/sb-light b/.local/bin/statusbar/sb-light index 51af599..26f060a 100755 --- a/.local/bin/statusbar/sb-light +++ b/.local/bin/statusbar/sb-light @@ -2,7 +2,7 @@ # SIGNAL 2 case $BLOCK_BUTTON in - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0";; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; 4) light -A 5;; 5) light -U 5;; esac diff --git a/.local/bin/statusbar/sb-mpd b/.local/bin/statusbar/sb-mpd index aa1dee0..90cd615 100755 --- a/.local/bin/statusbar/sb-mpd +++ b/.local/bin/statusbar/sb-mpd @@ -1,5 +1,5 @@ #!/usr/bin/sh -# show mpd status. WIP +# show mpd status. # SIGNAL 15 color=#427b58 @@ -17,11 +17,11 @@ if [ $(pidof mpd) ]; then *pause*) desc='PAUSED';; *play*) desc='PLAYING';; esac - # pidof -x sb-mpdup || setsid -f sb-mpdup # why doesn't setsid -f work? + pidof -x sb-mpdup >/dev/null 2>&1 || setsid -f sb-mpdup >/dev/null 2>&1 & else case $BLOCK_BUTTON in 1) mpd;; - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0";; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; esac desc="NO MPD" fi diff --git a/.local/bin/statusbar/sb-time b/.local/bin/statusbar/sb-time index 2ec9f2d..b23c2cb 100755 --- a/.local/bin/statusbar/sb-time +++ b/.local/bin/statusbar/sb-time @@ -3,7 +3,7 @@ case $BLOCK_BUTTON in 1) pkill -RTMIN+10 dwmblocks;; - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; esac dayfile=$HOME/.cache/dwm-date day=$(< $dayfile) diff --git a/.local/bin/statusbar/sb-tray b/.local/bin/statusbar/sb-tray index 56ba4e6..fa8e80b 100755 --- a/.local/bin/statusbar/sb-tray +++ b/.local/bin/statusbar/sb-tray @@ -4,7 +4,7 @@ case $BLOCK_BUTTON in 1) toggle-tray;; - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; esac printf "^b#d65d0e^^c#282828^  ^d^" diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 8601780..fea659f 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -4,7 +4,7 @@ case $BLOCK_BUTTON in 1) amixer -q set Master toggle;; - 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0";; + 3) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 &;; 4) amixer -q set Master 5%+;; 5) amixer -q set Master 5%-;; esac