Add calls to the dwm helper functions in the portion which sets the status bar time. Add a sleep so that a CPU is not always busy.
This commit is contained in:
@@ -5,17 +5,17 @@
|
|||||||
## Load System Libs ##
|
## Load System Libs ##
|
||||||
|
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||||
for f in /etc/X11/xinit/xinitrc.d/*; do
|
for f in /etc/X11/xinit/xinitrc.d/*; do
|
||||||
[ -x "$f" ] && . "$f"
|
[ -x "$f" ] && . "$f"
|
||||||
done
|
done
|
||||||
unset f
|
unset f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /usr/local/etc/X11/xinit/xinitrc.d ]; then
|
if [ -d /usr/local/etc/X11/xinit/xinitrc.d ]; then
|
||||||
for f in /usr/local/etc/X11/xinit/xinitrc.d/*; do
|
for f in /usr/local/etc/X11/xinit/xinitrc.d/*; do
|
||||||
[ -x "$f" ] && . "$f"
|
[ -x "$f" ] && . "$f"
|
||||||
done
|
done
|
||||||
unset f
|
unset f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -35,8 +35,23 @@ xsetroot -solid "$purple"
|
|||||||
#exec slstatus &
|
#exec slstatus &
|
||||||
|
|
||||||
# Custom #
|
# Custom #
|
||||||
|
source `which volume.function`
|
||||||
|
source `which battery.function`
|
||||||
|
source `which storage.function`
|
||||||
|
if [[ "`storage-root`" == "`storage-home`" ]]; then
|
||||||
|
storage_cmd=echo 'Storage: `storage-root-dwm`)"'
|
||||||
|
else
|
||||||
|
storage_cmd=echo '"Storage(Root:`storage-root-dwm` Home:`storage-home-dwm`)'
|
||||||
|
fi
|
||||||
while true; do
|
while true; do
|
||||||
xsetroot -name "`whoami`@`hostname` `date +"%Y-%m-%d %H:%M:%S"`"
|
readout="$readout Battery: `battery-display`"
|
||||||
|
readout="$readout | `storage_cmd`"
|
||||||
|
readout="$readout | `volume-display`"
|
||||||
|
readout="$readout | `whoami`@`hostname`"
|
||||||
|
readout="$readout `date +"%Y-%m-%d %H:%M:%S"`"
|
||||||
|
xsetroot -name "$readout"
|
||||||
|
readout=""
|
||||||
|
sleep 0.75
|
||||||
done &
|
done &
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user