[wiki] [sites] Resolving the dependency on webconverger.org. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sun, 26 Feb 2012 12:54:06 +0100 (CET)

changeset: 862:0c40b4ee4d5e
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sun Feb 26 12:50:13 2012 +0100
files: dwm.suckless.org/tutorial.md dwm.suckless.org/xinitrc.example
description:
Resolving the dependency on webconverger.org.


diff -r a80068e4e2a9 -r 0c40b4ee4d5e dwm.suckless.org/tutorial.md
--- a/dwm.suckless.org/tutorial.md Thu Feb 23 22:45:09 2012 -0500
+++ b/dwm.suckless.org/tutorial.md Sun Feb 26 12:50:13 2012 +0100
_AT_@ -84,11 +84,12 @@
 There are various tools and methods to populate this text with useful
 information from your system or services running on your system. A barebone
 for doing this in C is [dwmstatus](http://dwm.suckless.org/dwmstatus/).
-See the [xinitrc](http://git.webconverger.org/?p=home.git;a=blob_plain;f=.xinitrc)
+See the [xinitrc](http://dwm.suckless.org/xinitrc.example)
 example for how to do it using a script.
 
 Launching
 ---------
 
-To launch dwm, ideally you should setup an [xinitrc](http://git.webconverger.org/?p=home.git;a=blob_plain;f=.xinitrc).
+To launch dwm, ideally you should setup an
+[xinitrc](http://dwm.suckless.org/xinitrc.example).
 
diff -r a80068e4e2a9 -r 0c40b4ee4d5e dwm.suckless.org/xinitrc.example
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/xinitrc.example Sun Feb 26 12:50:13 2012 +0100
_AT_@ -0,0 +1,49 @@
+#!/bin/bash
+# Taken from:
+# https://raw.github.com/kaihendry/Kai-s--HOME/master/.xinitrc
+#
+# for terminus font in Archlinux :(
+xset +fp /usr/share/fonts/local
+xset fp rehash
+
+xset -b # disable bell
+eval `/usr/bin/ssh-agent`
+
+if test -f /usr/lib/openssh/x11-ssh-askpass # Archlinux
+then
+ SSH_ASKPASS=/usr/lib/openssh/x11-ssh-askpass ssh-add < /dev/null
+fi
+
+if test -f /usr/lib/ssh/x11-ssh-askpass # Debian
+then
+ SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass ssh-add < /dev/null
+fi
+
+# 1280x720 = 720p X220
+hash fswebcam && fswebcam -q --no-banner -r 1280x720 ~/private/login-photos/$(date +%Y-%m-%dT%H).jpg &
+
+xrdb -merge $HOME/.Xresources
+xmodmap ~/.Xmodmap
+setxkbmap -layout gb -option ctrl:nocaps
+
+hash chromium && chromium &
+
+while true
+do
+ VOL=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
+ LOCALTIME=$(date +%Z\=%Y-%m-%dT%H:%M)
+ OTHERTIME=$(TZ=Europe/London date +%Z\=%H:%M)
+ IP=$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1) # can get confused if you use vmware
+ TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
+
+ if acpi -a | grep off-line > /dev/null
+ then
+ BAT="Bat. $(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')"
+ xsetroot -name "$IP $BAT $VOL $TEMP $LOCALTIME $OTHERTIME"
+ else
+ xsetroot -name "$IP $VOL $TEMP $LOCALTIME $OTHERTIME"
+ fi
+ sleep 20s
+done &
+
+exec dwm
Received on Sun Feb 26 2012 - 12:54:06 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:32:06 CEST