bump dwl && scripts setup
This commit is contained in:
parent
eb056a3d11
commit
b0f35f3492
4 changed files with 20 additions and 1 deletions
17
scripts/Makefile
Normal file
17
scripts/Makefile
Normal 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
1
scripts/src/batman.sh
Executable 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
1
scripts/src/screenshot.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
slurp | grim -g - - | wl-copy
|
||||
Loading…
Add table
Add a link
Reference in a new issue