blob: 0183895adda3793c1f4f544f7768303c77c0037b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
.POSIX:
XINITRC_ORDER = 50
# Testing that xmonad is installed because it is the default sessions
# Testing that asroot, xorg-setxkbmap, and xorg-xmodmap are installed because setkeys uses them
install:
../check-any-installed asroot asroot-libpassphrase
../check-any-installed dconf dconf-cli
../check-installed xmonad
../check-any-installed xorg-setxkbmap x11-xkb-utils
../check-any-installed xorg-xmodmap x11-xserver-utils
../check-any-installed xorg-xrandr x11-xserver-utils
../check-any-installed xorg-xrdb x11-xserver-utils
../check-any-installed xorg-xset x11-xserver-utils
../check-any-installed xorg-xsetroot x11-xserver-utils
mkdir -p -- ~/.config/bash/aliases.d
test ! -e ~/.config/bash/aliases.d/xorg-xinit || test -L ~/.config/bash/aliases.d/xorg-xinit
ln -sf -- ~/.dotfiles/xorg-xinit/bash-aliases ~/.config/bash/aliases.d/xorg-xinit
mkdir -p -- ~/.config/X11/xinit
test ! -e ~/.config/X11/xinit/xinitrc || test -L ~/.config/X11/xinit/xinitrc
ln -sf -- ~/.dotfiles/xorg-xinit/xinitrc ~/.config/X11/xinit/xinitrc
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit || \
test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit
ln -sf -- ~/.dotfiles/xorg-xinit/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit
if test -x /usr/bin/orphan-reaper; then \
mkdir -p -- ~/.local/bin && \
ln -sf -- ~/.dotfiles/xorg-xinit/startx ~/.local/bin/; \
fi
uninstall:
+! ../check-installed xorg-xinit
+! ../check-installed xinit
-unlink -- ~/.config/bash/aliases.d/xorg-xinit
-rmdir -- ~/.config/bash/aliases.d
-unlink -- ~/.config/X11/xinit/xinitrc
-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit
-rmdir -- ~/.config/X11/xinit/xinitrc.d
-rmdir -- ~/.config/X11/xinit
-rmdir -- ~/.config/X11
-unlink -- ~/.local/bin/startx
|