-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
44 lines (36 loc) · 1.22 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
#!/bin/sh
#
## ~/.xsessionrc
#
## Executed by startx (loading some variables for all Xsessions)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
# shellcheck source=/dev/null
[ -x "$f" ] && . "$f"
done
unset f
fi
# run Xprofile
# shellcheck source=/dev/null
[ -f ~/.Xprofile ] && . ~/.Xprofile
# run Xmodmap
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
# run local xhost
xhost local:root
# If not using a login (display) manager, you might want to create
# the ~/.xsession file and move below contents there to start a specific
# Window Manager.
# Priority is as follows:
# - Run session as provided by Display Manager
# - Run "~/.xsession" or "~/.Xsession" and start Window Manager from there
# - Run "/usr/bin/x-window-manager", which can be configured via "update-alternatives --config x-window-manager"
##
# Propogate DISPLAY vars to Systemd, for more info see this
# https://wiki.archlinux.org/index.php/Systemd/User#Environment_variables
#
systemctl --user import-environment DISPLAY XAUTHORITY
# Make apps detect the WM correctly
export XDG_CURRENT_DESKTOP=i3
# See also "man i3", start i3 Window Manager directly from "~/.xsession"
# exec i3 -V >> ~/.i3/logfile 2>&1
exec i3 >> ~/.i3-logfile 2>&1