-
Notifications
You must be signed in to change notification settings - Fork 1
/
.xinitrc
executable file
·53 lines (43 loc) · 1.17 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
#!/bin/sh
userresources=$HOME/.Xresources
XMODMAP_USER=$HOME/.Xmodmap
XRESOURCES_ETC=/etc/X11/xinit/.Xresources
XMODPAM_ETC=/etc/X11/xinit/.Xmodmap
XRANDR_CMD=/usr/bin/autorandr
# merge in defaults and keymaps
if [ -f $XRESOURCES_ETC ]; then
xrdb -merge $XRESOURCES_ETC
fi
if [ -f $XMODPAM_ETC ]; then
xmodmap $XMODPAM_ETC
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$XMODMAP_USER" ]; then
xmodmap "$XMODMAP_USER"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[ -f ~/.xprofile ] && . ~/.xprofile
if [ -x "$XRANDR_CMD" ]; then
"${XRANDR_CMD}"
else
xrandr --auto
fi
numlockx &
xcompmgr &
if [ -S "${HOME}/.1password/agent.sock" ]; then
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets)"
export SSH_AUTH_SOCK=~/.1password/agent.sock
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID
else
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
fi
exec dbus-launch --exit-with-session sway