dotfiles/i3/makefile
James Patrick f680f78e67 Added base i3 configuration.
This is the standard template for i3.
2019-05-31 22:04:17 -04:00

23 lines
421 B
Makefile

SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
include ../lib/shared.mk
TARGET := $(XDG_DIR)/i3
install: | init update
init:
ifeq ($(call cmd_exist,i3), true)
$(info => Setting up i3)
$(mk_link) $(SRC) $(TARGET)
endif
update:
ifeq ($(call cmd_exist,i3-msg), true)
$(info => Reloading i3-msg)
swaymsg reload ; $(report) "i3 reload"
endif
remove:
$(info => Remvoing sway)
$(rm_link) $(TARGET)