aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-xrandr/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-26 14:28:22 +0200
committerMattias Andrée <maandree@kth.se>2021-06-26 14:28:22 +0200
commit7a0b602f284da36ba0e51a6a171e221b0cf63fd8 (patch)
tree688b1068b6394da743b367d65b6451dbaf9f415b /xorg-xrandr/Makefile
parentAdd xmonad-autofocus-output (diff)
downloaddotfiles-7a0b602f284da36ba0e51a6a171e221b0cf63fd8.tar.gz
dotfiles-7a0b602f284da36ba0e51a6a171e221b0cf63fd8.tar.bz2
dotfiles-7a0b602f284da36ba0e51a6a171e221b0cf63fd8.tar.xz
Add setkeys and setres
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xorg-xrandr/Makefile')
-rw-r--r--xorg-xrandr/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/xorg-xrandr/Makefile b/xorg-xrandr/Makefile
index b35df78..d135e27 100644
--- a/xorg-xrandr/Makefile
+++ b/xorg-xrandr/Makefile
@@ -4,16 +4,23 @@ include ../common.mk
XINITRC_ORDER = 15
# Testing that xwallpaper is installed because setres calls it
+# Testing that python3 is installed because setres is written in it
install:
$(CHECK_INSTALLED) xwallpaper
+ $(CHECK_INSTALLED) python3
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xrandr
ln -sf -- ~/.dotfiles/xorg-xrandr/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xrandr
+ mkdir -p -- ~/.local/bin
+ make -C setres
+ ln -sf -- ~/.dotfiles/xorg-xrandr/setres/setres ~/.local/bin
uninstall:
-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xrandr
-rmdir -- ~/.config/X11/xinit/xinitrc.d
-rmdir -- ~/.config/X11/xinit
-rmdir -- ~/.config/X11
+ -rmdir -- ~/.local/bin/setres
+ -make -C setres reallyclean
.PHONY: install uninstall