Switch to eww for status bar
This commit is contained in:
parent
f4c7c3e1e2
commit
106a9f4b38
15 changed files with 704 additions and 10 deletions
7
home-manager/wayland/eww/scripts/brightness
Executable file
7
home-manager/wayland/eww/scripts/brightness
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
brightnessctl -me | cut -d, -f4 | tr -d '%'
|
||||
device=$(brightnessctl -m | head -n 1 | cut -d, -f1)
|
||||
while true; do
|
||||
inotifywait /sys/class/backlight/"$device"/brightness &>/dev/null
|
||||
brightnessctl -me | cut -d, -f4 | tr -d '%'
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue