12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #!/bin/sh
- #/etc/X11/xinit/xinitrc
- userresources=$HOME/.Xresources
- usermodmap=$HOME/.Xmodmap
- sysresources=/etc/X11/xinit/Xresources
- sysmodmap=/etc/X11/xinit/Xmodmap
- # merge in defaults and keymaps
- ## & mibi wana add xsetkbmap stuff?
- 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
- # ... hrm, need this?
- if [ -n "`/etc/X11/chooser.sh`" ]; then
- command="`/etc/X11/chooser.sh`"
- else
- failsafe="yes"
- fi
- # and this? ... iunno wat it do.
- if [ -d /etc/X11/xinit/xinitrc.d ] ; then
- for f in /etc/X11/xinit/xinitrc.d/?* ; do
- [ -x "$f" ] && . "$f"
- done
- unset f
- fi
- # and ... c'mon, do i rly want a twm default to fall back on?
- if [ -n "$failsafe" ]; then
- twm &
- xclock -geometry 50x50-1+1 &
- xterm -geometry 80x50+494+51 &
- xterm -geometry 80x20+494-0 &
- exec xterm -geometry 80x66+0+0 -name login
- else
- exec $command
- fi
- #stuff from https://bbs.archlinux.org/viewtopic.php?pid=320776#p320776
- #set PATH here as gdm does not pass it in .bashrc (needed for dmenu)
- export PATH=$PATH:/home/digit/bin
- #with wmrotate in ^, start it.
- wmrotate & wmpid=$!
- #launch things
- #tint2 &
- #close x when wmrotate comes down
- wait $wmpid
|