aboutsummaryrefslogtreecommitdiff
path: root/quickshell/brightness.sh
diff options
context:
space:
mode:
Diffstat (limited to 'quickshell/brightness.sh')
-rwxr-xr-xquickshell/brightness.sh4
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"