2020-03-19 19:55:20 +00:00
|
|
|
# -*- mode: makefile-gmake; -*-
|
2019-04-27 22:21:33 +00:00
|
|
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
|
|
|
include ../lib/shared.mk
|
|
|
|
TARGET := $(XDG_DIR)/waybar
|
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
up: init
|
2020-03-09 17:30:45 +00:00
|
|
|
if (( $$+commands[swaymsg] )) ; then
|
|
|
|
$(report) header "Reloading waybar"
|
|
|
|
swaymsg reload ; $(report) "sway reload"
|
|
|
|
else
|
|
|
|
$(report) debug "swaymsg not installed. Skipping."
|
|
|
|
fi
|
2019-04-27 22:21:33 +00:00
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
down:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Removing waybar"
|
2019-12-13 17:00:11 +00:00
|
|
|
$(rm_link) $(TARGET)
|
2021-11-28 21:33:24 +00:00
|
|
|
|
|
|
|
init:
|
|
|
|
if (( $$+commands[waybar] )) ; then
|
|
|
|
$(report) header "Setting up waybar"
|
|
|
|
$(mk_link) $(SRC) $(TARGET)
|
|
|
|
else
|
|
|
|
$(report) debug "waybar not installed. Skipping."
|
|
|
|
fi
|