blob: 0d017d6ae48b94b80789fd5e6b904996c3739d7a (
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
|
.POSIX:
include ../common.mk
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_INSTALLED) asroot
$(CHECK_INSTALLED) dconf
$(CHECK_INSTALLED) xmonad
$(CHECK_INSTALLED) xorg-setxkbmap
$(CHECK_INSTALLED) xorg-xmodmap
$(CHECK_INSTALLED) xorg-xrandr
$(CHECK_INSTALLED) xorg-xrdb
$(CHECK_INSTALLED) xorg-xset
$(CHECK_INSTALLED) xorg-xsetroot
mkdir -p -- ~/.config/bash/aliases.d
test ! -d ~/.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 ! -d ~/.config/X11/xinit/xinitrc
ln -sf -- ~/.dotfiles/xorg-xinit/xinitrc ~/.config/X11/xinit/xinitrc
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit
ln -sf -- ~/.dotfiles/xorg-xinit/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit
uninstall:
-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
.PHONY: install uninstall
|