2014-04-16 03:15:55 -04:00
|
|
|
#!/bin/sh
|
2014-04-16 03:20:13 -04:00
|
|
|
# Executed when X session begins
|
|
|
|
#
|
|
|
|
# Copyright (C) 2014 Mike Gerwitz
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
##
|
2014-04-16 03:15:55 -04:00
|
|
|
|
2013-09-09 00:10:05 -04:00
|
|
|
setxkbmap -option ctrl:nocaps
|
|
|
|
xmodmap ~/.xmodmap
|
|
|
|
xset mouse 5/0.1
|
|
|
|
xsetroot -cursor_name arrow
|
|
|
|
|
2014-04-16 03:15:55 -04:00
|
|
|
# .Xresources will be included by convention, but .Xresources.d should be used
|
|
|
|
# instead; the latter will override the former
|
|
|
|
xrd="$HOME/.Xresources.d"
|
|
|
|
test -f ~/.Xresources && xrdb -merge ~/.Xresources
|
|
|
|
test -d "$xrd" && {
|
|
|
|
for xr in "$xrd"/*; do
|
|
|
|
xrdb -merge "$xr"
|
|
|
|
done
|
|
|
|
}
|
2013-09-09 00:10:05 -04:00
|
|
|
|
|
|
|
# .xprofile is *not* managed by software (such as Puppet) and may therefore
|
|
|
|
# be used for system-specific configuration
|
|
|
|
test -f ~/.xprofile && source ~/.xprofile
|
|
|
|
|
|
|
|
# screensaver can be disabled by creating ~/.noscreensaver (not managed)
|
2013-09-10 22:31:26 -04:00
|
|
|
test -f ~/.noscreensaver || {
|
|
|
|
xscreensaver &
|
|
|
|
xscreensaver-watchd 2>~/.xscreensaver-watch.log &
|
|
|
|
}
|
2013-09-09 00:10:05 -04:00
|
|
|
|
|
|
|
exec xmonad
|