Skip to content

Instantly share code, notes, and snippets.

@krid78
Created October 20, 2012 06:58
Show Gist options
  • Save krid78/3922436 to your computer and use it in GitHub Desktop.
Save krid78/3922436 to your computer and use it in GitHub Desktop.
Gentoo ~/.xinitrc
#!/usr/bin/env bash
echo "*** $0: $(date) @ ${HOSTNAME}" >> ${HOME}/sessionlog.txt
xset b 100 400 20 # set bell style volume(%) pitch duration
xset c off # keyclick off
xset m 35/10 10 # mouse
#TODO: check for remote session!
xrandr --verbose --query --output VGA1 --auto 2>&1 >> ${HOME}/sessionlog.txt
xterm -name ${HOSTNAME} -geometry 90x26+0+0&
if [[ ! -z ${WINDOWMANAGER} ]]; then
XSESSION=${WINDOWMANAGER}
fi
echo "XSESSION:${XSESSION}" >> ${HOME}/sessionlog.txt
if [[ -f /etc/X11/xinit/xinitrc ]]; then
source /etc/X11/xinit/xinitrc
fi
echo "*** $0: $(date) **TERMINATED** " >> ${HOME}/sessionlog.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment