-
Notifications
You must be signed in to change notification settings - Fork 1
/
xinitrc
executable file
·92 lines (73 loc) · 1.85 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/sh
# -*- coding: utf-8 -*-
#
# ~/.xinitrc
# Executed by startx (run your window manager from here)
#
# turn off your screen after 5 minutes of idling
# xset +dpms
# xset dpms 0 0 300
xset -b # no bell
xset +fp /usr/share/fonts/local
xset +fp /usr/share/fonts/TTF
xset fp rehash
# xsetroot -cursor_name left_ptr # set the cursor
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
# Load .Xdefaults
test -r $HOME/.Xresources && xrdb -merge $HOME/.Xresources
test -r $HOME/.Xdefaults && xrdb -merge $HOME/.Xdefaults
# [ -f /etc/xprofile ] && . /etc/xprofile
# [ -f ~/.xprofile ] && . ~/.xprofile
#(scale,tile,seemless,center)
#setxkbmap -option ctrl:swapcaps &
#autocutsel -selection CLIPBOARD -fork &
#autocutsel -selection PRIMARY -fork &
# background
# xsetroot -solid "#303030"
# feh --bg-scale ~/Downloads/118-e.jpg &
# export OOO_FORCE_DESKTOP=gnome &
# xrandr --output default --mode 1440x900 --pos 0x0 &
# Fix Java GUIs
# wmname LG3D
# see https://bbs.archlinux.org/viewtopic.php?id=99175
# export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
# KDE and Qt programs look
# export QT_PLUGIN_PATH=$HOME/.kde4/lib/kde4/plugins/:/usr/lib/kde4/plugins/
# Autostart {{{
# emacs --daemon &
# Start agents
eval $(gpg-agent --daemon)
# eval `ssh-agent -s`
# eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg)
# }}}
DEFAULT_SESSION=awesome
case $1 in
xfce4)
exec startxfce4
;;
awesome)
xscreensaver -nosplash &
exec awesome
;;
enlightenment)
exec enlightenment_start
;;
kde)
exec startkde
;;
# gnome)
# exec gnome-session
# ;;
*)
exec $DEFAULT_SESSION
;;
esac
# Terminate ssh-agent
# eval `ssh-agent -k`