Compare commits

...

2 commits

Author SHA1 Message Date
Zhongheng Liu
4e689bf5de update config 2025-10-06 02:22:32 +02:00
Zhongheng Liu
b0f35f3492 bump dwl && scripts setup 2025-10-03 12:47:49 +02:00
9 changed files with 33 additions and 2 deletions

3
.gitmodules vendored
View file

@ -10,3 +10,6 @@
[submodule "dwl"]
path = dwl
url = git@stvnliu.me:steven/dwl-custom
[submodule "dwlb"]
path = dwlb
url = git@stvnliu.me:steven/dwlb-custom

View file

@ -1,7 +1,8 @@
install:
cd ./scripts && $(MAKE) install && cd ..
cd ./dwl && $(MAKE) install && cd ..
cd ./somebar && meson setup build --reconfigure && ninja -C build && ninja -C build install && cd ..
cd ./someblocks && $(MAKE) install && cd ..
cd ./wmenu && meson setup build --reconfigure && ninja -C build && ninja -C build install && cd ..
cd ./wmenu && meson setup build --reconfigure && ninja -C build && ninja -C build install && cd ..

2
dwl

@ -1 +1 @@
Subproject commit 6cd26568d5b8be2252ac0def36cd194b4fb2d7c3
Subproject commit c643413742e5a500bc4c3254608d905be02a81a4

1
dwlb Submodule

@ -0,0 +1 @@
Subproject commit 48dbe00bdb98a1ae6a0e60558ce14503616aa759

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 "$(calc -p round\($(cat /sys/class/power_supply/BAT1/charge_now)/$(cat /sys/class/power_supply/BAT1/charge_full)\*100, 1\))%"

2
scripts/src/launch_dwlb.sh Executable file
View file

@ -0,0 +1,2 @@
dwlb -ipc -font "BlexMono Nerd Font:size=16" &
someblocks -p | dwlb -status-stdin all

5
scripts/src/screenshot-file.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/sh
IFS=""
file="$HOME/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S.png')"
echo $file
slurp | grim -g - $file

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

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