From df6c62d54a422635dde2106ab8de6f0090262dd9 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 20 Apr 2019 00:15:00 -0400 Subject: [PATCH] Adding make command for waybar. --- makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 3bb4236..2dce1ea 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ cmd_exist = $(shell (command -v $(1) 1>&2 >/dev/null && echo true || echo false) install: | init update -init: vim_init tmux_init ssh_init +init: vim_init tmux_init ssh_init waybar_init @ ln -svf $(SRC_DIR)/bin/post-merge $(SRC_DIR)/.git/hooks/post-merge update: vim_update @@ -20,6 +20,11 @@ tmux_init: && ln -svf $(SRC_DIR)/tmux/tmux.conf ~/.tmux.conf \ || echo " ~/.tmux.conf already exist. Skipping." +waybar_init: + @ [ $(call cmd_exist,'waybar') ] \ + && ! [ -e ~/.config/waybar ] \ + && ln -svf $(SRC_DIR)/waybar ~/.config/waybar \ + || echo " ~/.waybar.conf already exist. Skipping." vim_init: @ $(MAKE) -C $(SRC_DIR)/vim init vim_update: