mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-06 17:38:45 +00:00
Add hyprstack config
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
; this is taking up too much CPU time
|
||||
|
||||
(defpoll brightness-1 :interval "2s" "ddcutil -d 1 getvcp 10 | awk '{ split($9, a, \",\"); print a[1]}'")
|
||||
|
||||
(defwidget brightness []
|
||||
(eventbox :onscroll "sh widgets/brightness/change-brightness.sh {} ${brightness-1 + 0}"
|
||||
(label :text " ${substring(brightness-1, 0, 2)}")
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case $1 in
|
||||
up)
|
||||
ddcutil -d 1 setvcp 10 $(($2 + 10))
|
||||
;;
|
||||
down)
|
||||
ddcutil -d 1 setvcp 10 $(($2 - 10))
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user