diff options
author | toni <matzeton@googlemail.com> | 2014-07-07 14:44:30 +0200 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-07-07 14:44:30 +0200 |
commit | 8d431770f90997c21005ecde942fd0f9317413ec (patch) | |
tree | b345ed2d458d82655a8f10e1e198b653318f3d80 /configs/xinitrc_dwm | |
parent | 29eecdc76456e6db739f1b7fcca9e9608ef2911e (diff) |
some X related stuff
Diffstat (limited to 'configs/xinitrc_dwm')
-rw-r--r-- | configs/xinitrc_dwm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/xinitrc_dwm b/configs/xinitrc_dwm new file mode 100644 index 0000000..32dd3a6 --- /dev/null +++ b/configs/xinitrc_dwm @@ -0,0 +1,17 @@ +#!/bin/sh + +unclutter -root & # hide cursor when unused + +# Turn Super/Windows key into XF86Launch1 +xmodmap -e "keycode 133 = XF86Launch1" + +# Turn CapsLock into Control +xmodmap -e "clear lock" -e "keycode 66 = Control_R" -e "add Control = Control_R" + +# Show memory use, volume %, battery % and time in status bar +while xsetroot -name "$(free -m | awk '/cache:/ { print $3"MB" }') Vol:$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]') $(date +%R) $(df -h | sed -e 's/[[:space:]]\([[:digit:]]\{1,2\}%\) \(\/home\|\/boot\|\/$\)/MP: \2 USG: \1/' | grep -oE '[[:space:]]MP:(.*)$' | tr '\n' ' ') Upt:$(uptime | sed -e 's/,[[:space:]]*[[:digit:]]*[[:space:]]users,.*//')" +do + sleep 1 +done & + +exec ck-launch-session dbus-launch dwm |