diff --git a/dwm-start.sh b/dwm-start.sh new file mode 100755 index 0000000..7b714d2 --- /dev/null +++ b/dwm-start.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# Script to start dwm in loop + +while true; do + $HOME/bin/dwmstatus + sleep 2 +done & + +while true; do + dwm >/dev/null + # to log stderrors to a file + # dwm 2> ~/Build/dwm/dwm.log +done diff --git a/dwmstatus.sh b/dwmstatus.sh new file mode 100755 index 0000000..ce563e7 --- /dev/null +++ b/dwmstatus.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# status script for dwm +# influenced by: +# https://bitbucket.org/jasonwryan/shiv/Scripts/dwm-status +# https://github.com/w0ng/bin/blob/master/dwm-statusbar +######################## +## eric@ewpt3ch.com #### +## dwmstatus ########### +######################## +# colors: + +dte(){ + dte="$(date "+%I:%M")" + echo -e "\x02$dte\x01" +} + +# Pipe to statusbar +xsetroot -name "$(dte) "