Compare commits

...

2 commits

Author SHA1 Message Date
4f72c9bde0 Merge pull request 'Ajout : nouveau xinitrc' (#1) from feature/fix-xinitrc into main
Reviewed-on: https://gitea.ahur.ac/Jaaj-San/pointfichiers/pulls/1
trop lourd mrc
2023-10-27 13:32:18 +02:00
Hippolyte Chauvin
46ade17fff Ajout : nouveau xinitrc 2023-10-27 13:20:53 +02:00

45
home/xinitrc Executable file
View file

@ -0,0 +1,45 @@
#!/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
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