46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
#!/bin/sh
|
|
# 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/>.
|
|
##
|
|
|
|
setxkbmap -option ctrl:nocaps
|
|
xmodmap ~/.xmodmap
|
|
xset mouse 5/0.1
|
|
xsetroot -cursor_name arrow
|
|
|
|
# .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
|
|
}
|
|
|
|
# .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)
|
|
test -f ~/.noscreensaver || {
|
|
xscreensaver &
|
|
xscreensaver-watchd 2>~/.xscreensaver-watch.log &
|
|
}
|
|
|
|
exec xmonad
|