1 # $Id: .xinitrc,v 1.5 2020/12/22 08:19:27 cvs Exp $
3 # Suck in global xinitrc files
4 if [ -d /etc/X11/xinit/xinitrc.d ]; then
5 for f in /etc/X11/xinit/xinitrc.d/*; do
11 [ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
13 ## add some nice fonts
14 for m in /usr/local/share/fonts/*; do
21 xrandr | grep -w connected | grep 2880 > /dev/null
23 # We have a high DPI monitor connected
31 if [ $HIGHDPI -eq 1 ]; then
33 if [[ -h ${_xpath} ]]; then
35 ln -s ~/Documents/git/config/.Xresources-high ${_xpath}
37 elif [[ ! -e ${_xpath} ]]; then
38 ln -s ~/Documents/git/config/.Xresources-high ${_xpath}
43 if [[ -h ${_cpath} ]]; then
45 ln -s ${_cpath}.high ${_cpath}
48 _apath=~/.i3/autostart
49 if [[ -h ${_apath} ]]; then
51 ln -s ${_apath}.high ${_apath}
55 if [[ -h ${_xpath} ]]; then
57 ln -s ~/Documents/git/config/.Xresources ${_xpath}
59 elif [[ ! -e ${_xpath} ]]; then
60 ln -s ~/Documents/git/config/.Xresources ${_xpath}
65 if [[ -h ${_cpath} ]]; then
67 ln -s ${_cpath}.low ${_cpath}
70 _apath=~/.i3/autostart
71 if [[ -h ${_apath} ]]; then
73 ln -s ${_apath}.low ${_apath}
77 # Link host specific i3status config
78 _apath=~/.i3status.conf
79 if [[ -h ${_apath} ]]; then
81 ln -s ~/Documents/git/config/.i3status.conf.$(hostname -s) ${_apath}
84 [[ -e ~/.profile ]] && . ~/.profile &
86 export LC_CTYPE=en_US.UTF-8
87 export GTK_IM_MODULE=xim # without this GTK apps will use their own compose key settings
88 export LESSCHARSET=utf-8 # not strictly necessary, but for when you view Unicode files in less
89 export ENV=$HOME/.kshrc
91 #exec dbus-launch --exit-with-session ssh-agent /home/xhr/Documents/bin/cwm-session
92 exec dbus-launch --exit-with-session ssh-agent i3
93 #exec /usr/local/bin/dbus-launch --exit-with-session /usr/local/bin/i3