25 lines
564 B
Bash
Executable File
25 lines
564 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# this file is executed when calling startx
|
|
|
|
# session to run
|
|
session="openbox-session"
|
|
|
|
# default arch xinit scripts
|
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
|
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
|
[ -x "$f" ] && . "$f"
|
|
done
|
|
fi
|
|
|
|
# user init scripts and settings
|
|
[ -f /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap
|
|
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
|
|
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
|
|
|
# don't put commands below the exec line
|
|
|
|
# launch the session
|
|
exec $session
|