mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge 3fb60852de6d6d9011afdf65b247690ae54dfa5b into cf4a12acb3a70951fd59d67e0738bf3ab2d1045c
This commit is contained in:
commit
fa7a83a0d3
13
.local/bin/statusbar/sb-bghitness
Normal file
13
.local/bin/statusbar/sb-bghitness
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# show the current brightness level.
|
||||||
|
|
||||||
|
case $BLOCK_BUTTON in
|
||||||
|
1) setsid -w -f "$TERMINAL" -e brightnessctl; pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}" ;;
|
||||||
|
3) notify-send "💡 Brightness module" "\- Shows brightness level ☀️." ;;
|
||||||
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
|
esact
|
||||||
|
|
||||||
|
brightness=$(brightnessctl -m | grep -m 1 "backlight" | cut -d "," -f 4)
|
||||||
|
|
||||||
|
echo "💡 $brightness"
|
||||||
Loading…
x
Reference in New Issue
Block a user