summaryrefslogtreecommitdiff
path: root/arch/scripts/.local/bin/toggle-screen-temp
blob: d0135bf38424ecb9f69b3eb49686cdb30e2a5bf4 (plain)
1
2
3
4
5
6
7
8
9
10
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