forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
68 lines (54 loc) · 1.55 KB
/
.xinitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# Executed by startx (run your window manager from here)
# if [ -d /etc/X11/xinit/xinitrc.d ]; then
# for f in /etc/X11/xinit/xinitrc.d/*; do
# [ -x "$f" ] && . "$f"
# done
# unset f
# fi
# exec gnome-session
# exec startkde
# exec startxfce4
# exec wmaker
# exec icewm
# exec blackbox
# exec fluxbox
# exec xterm
exec openbox-session
# 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
#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