From 93dfad09b4e28fe492fbe09256ababade905eb50 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 2 May 2019 01:18:39 -0400 Subject: [PATCH] Added Mako configuration. --- mako/config | 7 +++++++ mako/makefile | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 mako/config create mode 100644 mako/makefile diff --git a/mako/config b/mako/config new file mode 100644 index 0000000..bcdfa77 --- /dev/null +++ b/mako/config @@ -0,0 +1,7 @@ +font=FuraCode Nerd Font Light 11 +width=450 +padding=15,10 +background-color=#161720ee +border-color=#12151a +text-color=#d6e5fb +default-timeout=8000 diff --git a/mako/makefile b/mako/makefile new file mode 100644 index 0000000..f5928a2 --- /dev/null +++ b/mako/makefile @@ -0,0 +1,23 @@ +SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + +include ../lib/shared.mk +TARGET := $(XDG_DIR)/mako + +install: | init update + +init: +ifeq ($(call cmd_exist,mako), true) + $(info => Setting up mako) + $(mk_link) $(SRC) $(TARGET) +endif + +update: +ifeq ($(call cmd_exist,makoctl), true) + $(info => Reloading mako) + [[ -n `pgrep mako` ]] \ + && ( makoctl reload ; $(report) "mako reload") ; true +endif + +remove: + $(info => Remvoing sway) + $(rm_link) $(TARGET)