This is a very simple bash script to display the current date and time along with the CPU temperature in DWM's status monitor.
This was designed to work with Raspbian OS on the RPI3, but if you modify the /sys
temperature path, it should work on most UNIX system.
- Download the bash script and save to a location on your machine.
- Use
chmod
to make it executable (e.g.chmod 700 dwm-sss
). - Edit your
~/.xinitrc
to include the following line:
/path/to/dwm-sss &
- Call
xinit
/startx
or reboot to start the daemon.
This is what the status bar should look like: