From 7b63cde67c525007821f6aca4f8fad5aaeba6b05 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 13 Jan 2011 09:32:28 +0100 Subject: [PATCH] Added xinitrc --- install.sh | 2 ++ xinitrc | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 xinitrc diff --git a/install.sh b/install.sh index 433e43a..9217051 100755 --- a/install.sh +++ b/install.sh @@ -37,6 +37,8 @@ linkmy vimrc .vimrc linkmy vim .vim # XDEFAULTS linkmy Xdefaults .Xdefaults +# XINITRC +linkmy xinitrc .xinitrc # XMODMAP linkmy Xmodmap .Xmodmap # ZSH diff --git a/xinitrc b/xinitrc new file mode 100644 index 0000000..a7de6b5 --- /dev/null +++ b/xinitrc @@ -0,0 +1,40 @@ +#xmodmap -e "pointer = 3 2 1" +#exec awesome +while :; do + ROTNAME="`date +%a\ %d\ %b\ %R\ %Z\ %Y`" + + COWUPDT=`cat ~/.updates` + if [ $COWUPDT -gt 0 ]; then + ROTNAME="aur: $COWUPDT | $ROTNAME" + fi + + PACUPDT=`pacman -Qu | wc -l` + if [ $PACUPDT -gt 0 ]; then + ROTNAME="updates: $PACUPDT | $ROTNAME" + fi + + IACTCNT=`find ~/Mail/iactor/INBOX/new -maxdepth 1 -type f -print | wc -l` + if [ $IACTCNT -gt 0 ]; then + ROTNAME="iactor: $IACTCNT | $ROTNAME" + fi + + GMAILCT=`find ~/Mail/gmail/INBOX/new -maxdepth 1 -type f -print | wc -l` + if [ $GMAILCT -gt 0 ]; then + ROTNAME="gmail: $GMAILCT | $ROTNAME" + fi + + ARCHCNT=`find ~/Mail/arch/INBOX/new -maxdepth 1 -type f -print | wc -l` + if [ $ARCHCNT -gt 0 ]; then + ROTNAME="arch: $ARCHCNT | $ROTNAME" + fi + + xsetroot -name "$ROTNAME" + sleep 1m +done & +feh --bg-tile ~/Pictures/tile.png +emacs --daemon +#xrandr --output DVI-I-1 --mode 1680x1050 --primary --output VGA-1 --right-of DVI-I-1 +xmodmap -e "pointer = 3 2 1" +conky + +exec dwm