summaryrefslogtreecommitdiff
path: root/arch/scripts/.local
diff options
context:
space:
mode:
Diffstat (limited to 'arch/scripts/.local')
-rwxr-xr-xarch/scripts/.local/bin/toggle-screen-temp11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/scripts/.local/bin/toggle-screen-temp b/arch/scripts/.local/bin/toggle-screen-temp
new file mode 100755
index 0000000..d0135bf
--- /dev/null
+++ b/arch/scripts/.local/bin/toggle-screen-temp
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+sentinelfile="${XDG_RUNTIME_DIR}/screentempislow"
+
+if [[ -e ${sentinelfile} ]]; then
+ hyprctl hyprsunset temperature 6000
+ rm ${sentinelfile}
+else
+ hyprctl hyprsunset temperature 3500
+ touch ${sentinelfile}
+fi