52 lines
1.1 KiB
Text
Executable file
52 lines
1.1 KiB
Text
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
|
exec dbus-launch --exit-with-session "$0" "$@"
|
|
fi
|
|
|
|
if [ -z "$SSH_AGENT_PID" ]; then
|
|
exec ssh-agent "$0" "$@"
|
|
fi
|
|
|
|
userresources=$HOME/.Xresources
|
|
usermodmap=$HOME/.Xmodmap
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
if [ -f $sysresources ]; then
|
|
xrdb -merge $sysresources
|
|
fi
|
|
|
|
if [ -f $sysmodmap ]; then
|
|
xmodmap $sysmodmap
|
|
fi
|
|
|
|
if [ -f "$userresources" ]; then
|
|
xrdb -merge "$userresources"
|
|
fi
|
|
|
|
if [ -f "$usermodmap" ]; then
|
|
xmodmap "$usermodmap"
|
|
fi
|
|
|
|
# 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
|
|
|
|
if type "x11-toggle-primary-gpu" > /dev/null; then
|
|
if [ "$(x11-toggle-primary-gpu get)" == "NVIDIA" ]; then
|
|
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
|
fi
|
|
fi
|
|
xrandr --auto
|
|
|
|
setxkbmap fr
|
|
exec i3
|
|
# twm &
|
|
# xclock -geometry 50x50-1+1 &
|
|
# xterm -geometry 80x50+494+51 &
|
|
# xterm -geometry 80x20+494-0 &
|
|
# exec xterm -geometry 80x66+0+0 -name login
|