Compare commits
2 commits
eb056a3d11
...
4e689bf5de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e689bf5de | ||
|
|
b0f35f3492 |
9 changed files with 33 additions and 2 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -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
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -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
2
dwl
|
|
@ -1 +1 @@
|
|||
Subproject commit 6cd26568d5b8be2252ac0def36cd194b4fb2d7c3
|
||||
Subproject commit c643413742e5a500bc4c3254608d905be02a81a4
|
||||
1
dwlb
Submodule
1
dwlb
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 48dbe00bdb98a1ae6a0e60558ce14503616aa759
|
||||
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 "$(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
2
scripts/src/launch_dwlb.sh
Executable 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
5
scripts/src/screenshot-file.sh
Executable 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
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