hell n back
This commit is contained in:
parent
3ee6761b45
commit
cac7203033
45 changed files with 2988 additions and 177 deletions
13
modules/eww/scripts/brightness.sh
Executable file
13
modules/eww/scripts/brightness.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
if eww windows | grep -q "\*brightness"; then
|
||||
eww update bright-level="$(brightnessctl -m -d intel_backlight | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%')"
|
||||
else
|
||||
eww close volume
|
||||
eww open brightness
|
||||
|
||||
eww update bright-level="$(brightnessctl -m -d intel_backlight | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%')"
|
||||
sleep 2
|
||||
sleep 1
|
||||
eww close brightness
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue