aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-xinit/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
commit5a7db2f34aa6a6787d98a001b6d28be97f36abf4 (patch)
tree52db199005cc5daee35b5c0e9b3d28b534449e1c /xorg-xinit/Makefile
downloaddotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.gz
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.bz2
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xorg-xinit/Makefile')
-rw-r--r--xorg-xinit/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/xorg-xinit/Makefile b/xorg-xinit/Makefile
new file mode 100644
index 0000000..1c37d2f
--- /dev/null
+++ b/xorg-xinit/Makefile
@@ -0,0 +1,36 @@
+.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:
+ pacman -Qq -- asroot </dev/null >/dev/null
+ pacman -Qq -- dconf </dev/null >/dev/null
+ pacman -Qq -- xmonad </dev/null >/dev/null
+ pacman -Qq -- xorg-setxkbmap </dev/null >/dev/null
+ pacman -Qq -- xorg-xmodmap </dev/null >/dev/null
+ pacman -Qq -- xorg-xrandr </dev/null >/dev/null
+ pacman -Qq -- xorg-xrdb </dev/null >/dev/null
+ pacman -Qq -- xorg-xset </dev/null >/dev/null
+ pacman -Qq -- xorg-xsetroot </dev/null >/dev/null
+ 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