bump dwl && scripts setup

This commit is contained in:
Zhongheng Liu 2025-10-03 12:47:49 +02:00
commit b0f35f3492
4 changed files with 20 additions and 1 deletions

17
scripts/Makefile Normal file
View file

@ -0,0 +1,17 @@
SHELL := /bin/bash
DEST := /usr/local/bin
SRC := ./src/
install:
@if [ "$$(id -u)" -ne 0 ]; then \
echo "Error: You must be root to run 'make install'."; \
exit 1; \
fi
@find $(SRC) -type f | while IFS= read -r fpath; do \
filename="$${fpath##*/}"; \
echo "Installing $$filename ..."; \
install -m 755 "$$fpath" "$(DEST)/$$filename"; \
done

1
scripts/src/batman.sh Executable file
View file

@ -0,0 +1 @@
echo "BAT1: $(calc -p round\($(cat /sys/class/power_supply/BAT1/charge_now)/$(cat /sys/class/power_supply/BAT1/charge_full)\*100, 1\))% # $(cat /sys/class/power_supply/BAT1/status)"

1
scripts/src/screenshot.sh Executable file
View file

@ -0,0 +1 @@
slurp | grim -g - - | wl-copy