diff options
Diffstat (limited to 'quickshell/brightness.sh')
| -rwxr-xr-x | quickshell/brightness.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quickshell/brightness.sh b/quickshell/brightness.sh new file mode 100755 index 0000000..ccb2bc2 --- /dev/null +++ b/quickshell/brightness.sh @@ -0,0 +1,4 @@ +brightness=$(brightnessctl | grep 'Current brightness' | grep -o '[0-9]\+' | head -n 1) +temp=$(hyprctl hyprsunset temperature 2>/dev/null | grep -o '[0-9]\+') +if [ -z "$temp" ]; then temp=6000; fi +echo "$brightness $temp" |
