Created
October 20, 2012 06:58
-
-
Save krid78/3922436 to your computer and use it in GitHub Desktop.
Gentoo ~/.xinitrc
This file contains 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
#!/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