aboutsummaryrefslogtreecommitdiff
path: root/bin/blind.sh
blob: 81d7d16751078d80d1d45f87e55ab99a60823385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

now=$(TZ=Iran date +%H)
night=21
morning=5

if [ "$now" -ge "$night" ] || [ "$now" -le "$morning" ]
then
	brightnessctl -q set 200
else
	brightnessctl -q set 900
fi