forked from l0b0/tilde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·51 lines (40 loc) · 1.02 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
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
set -o errexit -o nounset
exec 5>&1 6>&2 # Save stdout and stderr pointers
exec > ~/.xinitrc.log 2>&1 # Log stdout and stderr
set -o noclobber
if [ -d /etc/X11/xinit/xinitrc.d ]
then
for path in /etc/X11/xinit/xinitrc.d/*
do
[ -x "$path" ] && . "$path"
done
unset path
fi
# User settings
user_resources=$HOME/.Xresources
if [ -f "$user_resources" ]
then
xrdb -merge "$user_resources"
fi
unset user_resources
# Machine specific settings
local_xinitrc=$HOME/.xinitrc_local
if [ -f "$local_xinitrc" ]
then
. "$local_xinitrc"
fi
unset local_xinitrc
# GNOME Keyring Daemon
source /etc/X11/xinit/xinitrc.d/30-dbus
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK
exec 1>&5 5>&- 2>&6 6>&- # Restore stdout and stderr pointers
# Network Manager task bar applet
nm-applet &
xscreensaver -no-splash &
exec awesome