Initial commit: monitor-lets-go — automatic monitor layout daemon

This commit is contained in:
Maksim Totmin
2026-06-22 16:22:47 +07:00
commit a4b80616bb
13 changed files with 1708 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
# monitor-lets-go Makefile
BIN := monitor-lets-go
SRCDIR := ./cmd/neodock
INSTALL ?= install
.DEFAULT_GOAL := build
# ---------------------------------------------------------------------------
# Build
# ---------------------------------------------------------------------------
build:
go build -ldflags="-s -w" -o $(BIN) $(SRCDIR)
# build with race detector for development
build-race:
go build -race -o $(BIN) $(SRCDIR)
# ---------------------------------------------------------------------------
# Install
# ---------------------------------------------------------------------------
install: build
$(INSTALL) -Dm755 $(BIN) $(HOME)/.local/bin/$(BIN)
systemd-install:
$(INSTALL) -Dm644 contrib/monitor-lets-go.service $(HOME)/.config/systemd/user/monitor-lets-go.service
systemctl --user daemon-reload
systemctl --user enable --now monitor-lets-go
systemd-status:
systemctl --user status monitor-lets-go
systemd-logs:
journalctl --user -u monitor-lets-go -f
# ---------------------------------------------------------------------------
# Quality
# ---------------------------------------------------------------------------
lint:
go vet ./...
test:
go test -v -race ./...
# ---------------------------------------------------------------------------
# Clean
# ---------------------------------------------------------------------------
clean:
rm -f $(BIN)