Add screen brightness in jour/nuit/crepuscule

Wanted to do that in Ansible but those things have been living in the
script themselves forever and making this repo never fully commited,
got fed up of that and made a loosy "if $HOSTNAME" so I can move on wit
it.
Still need to do the same on the other devices though.
This commit is contained in:
Geoffrey Frogeye 2022-11-04 14:12:16 +01:00
parent 060e9db995
commit 4030606ec8
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO De-hardcode if [ "$(cat /etc/hostname)" = "curacao.geoffrey.frogeye.fr" ]
then
echo 30000 | sudo tee /sys/class/backlight/intel_backlight/brightness echo 10000 | sudo tee /sys/class/backlight/intel_backlight/brightness
xrandr --output HDMI-0 --brightness 1 fi
automatrop -e base16_scheme=solarized-dark --tags color automatrop -e base16_scheme=solarized-dark --tags color

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO De-hardcode if [ "$(cat /etc/hostname)" = "curacao.geoffrey.frogeye.fr" ]
then
echo 30000 | sudo tee /sys/class/backlight/intel_backlight/brightness echo 40000 | sudo tee /sys/class/backlight/intel_backlight/brightness
xrandr --output HDMI-0 --brightness 1 fi
automatrop -e base16_scheme=solarized-light --tags color automatrop -e base16_scheme=solarized-light --tags color

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO De-hardcode if [ "$(cat /etc/hostname)" = "curacao.geoffrey.frogeye.fr" ]
then
echo 1 | sudo tee /sys/class/backlight/intel_backlight/brightness echo 1 | sudo tee /sys/class/backlight/intel_backlight/brightness
xrandr --output HDMI-0 --brightness 0.5 fi
automatrop -e base16_scheme=solarized-dark --tags color automatrop -e base16_scheme=solarized-dark --tags color