From 1c60cb9771d5092f1c48f0ceea9f1b94ad9e887f Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Sun, 24 May 2015 21:12:29 -0600 Subject: [PATCH] initial commit of new dwmstart and dwmstatus --- dwm-start.sh | 13 +++++++++++++ dwmstatus.sh | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 dwm-start.sh create mode 100755 dwmstatus.sh 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) "