Last active
April 12, 2025 16:20
-
-
Save injust90/da2e973553f0129641b954235dfb2098 to your computer and use it in GitHub Desktop.
xinit file for startxfce4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
prefix="/usr" | |
exec_prefix="${prefix}" | |
xrdb="xrdb" | |
xinitdir="/etc/X11/xinit" | |
xclock="xclock" | |
xterm="xterm" | |
twm="twm" | |
xmodmap="xmodmap" | |
userresources="$HOME/.Xresources" | |
usermodmap="$HOME/.Xmodmap" | |
sysresources="$xinitdir/.Xresources" | |
sysmodmap="$xinitdir/.Xmodmap" | |
# merge in defaults and keymaps | |
if [ -f "$sysresources" ]; then | |
if [ -x /usr/bin/cpp ] ; then | |
"$xrdb" -merge "$sysresources" | |
else | |
"$xrdb" -nocpp -merge "$sysresources" | |
fi | |
fi | |
if [ -f "$sysmodmap" ]; then | |
"$xmodmap" "$sysmodmap" | |
fi | |
if [ -f "$userresources" ]; then | |
if [ -x /usr/bin/cpp ] ; then | |
"$xrdb" -merge "$userresources" | |
else | |
"$xrdb" -nocpp -merge "$userresources" | |
fi | |
fi | |
if [ -f "$usermodmap" ]; then | |
"$xmodmap" "$usermodmap" | |
fi | |
# start some nice programs | |
if [ -d "$xinitdir"/xinitrc.d ] ; then | |
for f in "$xinitdir/xinitrc.d"/?*.sh ; do | |
[ -x "$f" ] && . "$f" | |
done | |
unset f | |
fi | |
"$twm" & | |
"$xclock" -geometry 50x50-1+1 & | |
"$xterm" -geometry 80x50+494+51 & | |
"$xterm" -geometry 80x20+494-0 & | |
exec startxfce4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment