3 # Setup script for X11 configuration files.
5 # Copyright (C) 2011-2012 Simon Ruderich
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 if installed stumpwm; then
26 link stumpwmrc ~/.stumpwmrc
28 if installed xmonad; then
33 # Prevent code duplication. Term* rules are for all terminals; XTerm rules
34 # are for XTerm and UXTerm. At the moment XTerm, UXTerm and Rxvt are
36 generate perl Xdefaults -ne \
49 # Xdefaults uses ! as comment instead of #.
50 sed_i 's/^#/!/' Xdefaults
52 if test ! "x`os`" = xdarwin; then
53 link xinitrc ~/.xinitrc
54 # lightdm doesn't use ~/.xinitrc but ~/.xprofile instead. Assume it's
55 # used when the lightdm configuration file is present.
56 if test -f "$HOME/.dmrc"; then
57 link xinitrc ~/.xprofile
60 if test -f xinitrc.local; then
61 link xinitrc.local ~/.xinitrc.local
63 link xmodmaprc ~/.xmodmaprc
64 link Xdefaults ~/.Xdefaults
65 link XCompose ~/.XCompose
68 if installed xpdf; then
71 if installed zathura; then
72 mkdir -p ~/.config/zathura
73 link zathurarc ~/.config/zathura/zathurarc
76 if installed feh; then
78 link feh ~/.config/feh
79 # Older feh versions only support theme options and configure them through
81 link feh/themes ~/.fehrc