Prevent additional call in dwm-status.
This commit is contained in:
@@ -25,6 +25,7 @@ function dwm-status {
|
||||
}
|
||||
fi
|
||||
battery=""; storage=""; volume=""; datetime="";
|
||||
userhost="`whoami`@`hostname`"
|
||||
while true; do
|
||||
# Reset Variables
|
||||
if [[ $datetime == *"00" ]]; then
|
||||
@@ -54,7 +55,7 @@ function dwm-status {
|
||||
readout="$readout $battery"
|
||||
readout="$readout | $storage"
|
||||
readout="$readout | $volume"
|
||||
readout="$readout | `whoami`@`hostname`"
|
||||
readout="$readout | $userhost"
|
||||
readout="$readout $datetime"
|
||||
$cmd "$readout"
|
||||
readout=""
|
||||
|
||||
Reference in New Issue
Block a user