-
Notifications
You must be signed in to change notification settings - Fork 9
/
.xinitrc
77 lines (69 loc) · 1.83 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
69
70
71
72
73
74
75
76
77
#
# $Id: ~/.xinitrc Exp $
#
#
# Set up ssh/gpg-agent
#
envfile="${TMPDIR}/ssh-agent-env"
if [ -r "${envfile}" ]; then
while read line; do
export "${line}"
done <"${envfile}"
else
eval export $(gpg-agent --homedir ~/.gnupg --daemon --sh)
eval export $(ssh-agent -s)
printf "GPG_AGENT_INFO=$GPG_AGENT_INFO\nSSH_AUTH_SOCK=$SSH_AUTH_SOCK\nSSH_AGENT_PID=$SSH_AGENT_PID\n" >"${envfile}"
fi
envfile=
#
# Set up basic X server settings
#
xset s off
for dir in /usr/share/fonts/* ~/.fonts/*; do
[ -d "$dir" ] && xset fp+ "$dir"
done
unset dir
xset fp rehash
[ -s ~/.Xresources ] && xrdb -load ~/.Xresources
#setxkbmap -model pc105 -layout fr -variant ,oss,latin9,oss_latin9 \
# -option grp:shift_caps_toggle,keypad:future,terminate:ctrl_alt_bksp
#[ -s ~/.Xdefaults ] && xrdb -merge ~/.Xdefaults
[ -s ~/.Xmodmap ] && xmodmap ~/.Xmodmap
#[ -s ~/.color/x/sj-bright ] && xrdb -merge ~/.color/x/sj-bright
[ -s ~/.xbindkeysrc ] && xbindkeys -f ~/.xbindkeysrc
#xautolock -time 30 -locker slock
xbacklight -set 15
if [ -f ~/.color/icc/default.ic* ]; then
oyranos-monitor ~/.color/icc/default.ic*
oyranos-monitor-daemon &
fi
unclutter -idle 8 -noevents &
#
# Launch a few apps/daemons if available
#
dhcpcd-gtk >/dev/null 2>&1 &
ladi-system-tray > ~/.log/ladi.log 2>&1 &
urxvtd -q -o -f &
#
# Start a WM depending on TTY login;
# Or else, start a seesion passed as @arg-1
#
case "${1:-$(tty)}" in
(enligh*|*tty1) exec enlightenment_start;;
(icewm|*tty2) exec icewm-session ;;
(openbox|*tty3) exec openbox-session ;;
esac
## Set up a default/fallback session
#
if type -p enlightenment_start >/dev/null 2>&1; then
exec enlightenment_start
elif type -p openbox-session >/dev/null 2>&1; then
exec openbox-session
elif type -p icewm-session >/dev/null 2>&1; then
exec icewm-session
else
xterm -geometry 80x24-0-0
fi
#
# vim:fenc=utf-8:ft=sh:ci:pi:sts=2:sw=2:ts=2:
#