From 4030606ec8fd45b92f7209b2663c398c6682fefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Fri, 4 Nov 2022 14:12:16 +0100 Subject: [PATCH] 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. --- config/scripts/crepuscule | 8 ++++---- config/scripts/jour | 8 ++++---- config/scripts/nuit | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config/scripts/crepuscule b/config/scripts/crepuscule index ebd3d53..88c2fbc 100755 --- a/config/scripts/crepuscule +++ b/config/scripts/crepuscule @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# TODO De-hardcode - -echo 30000 | sudo tee /sys/class/backlight/intel_backlight/brightness -xrandr --output HDMI-0 --brightness 1 +if [ "$(cat /etc/hostname)" = "curacao.geoffrey.frogeye.fr" ] +then + echo 10000 | sudo tee /sys/class/backlight/intel_backlight/brightness +fi automatrop -e base16_scheme=solarized-dark --tags color diff --git a/config/scripts/jour b/config/scripts/jour index f251dd7..f190896 100755 --- a/config/scripts/jour +++ b/config/scripts/jour @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# TODO De-hardcode - -echo 30000 | sudo tee /sys/class/backlight/intel_backlight/brightness -xrandr --output HDMI-0 --brightness 1 +if [ "$(cat /etc/hostname)" = "curacao.geoffrey.frogeye.fr" ] +then + echo 40000 | sudo tee /sys/class/backlight/intel_backlight/brightness +fi automatrop -e base16_scheme=solarized-light --tags color diff --git a/config/scripts/nuit b/config/scripts/nuit index e6a4954..a59ce4c 100755 --- a/config/scripts/nuit +++ b/config/scripts/nuit @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# TODO De-hardcode - -echo 1 | sudo tee /sys/class/backlight/intel_backlight/brightness -xrandr --output HDMI-0 --brightness 0.5 +if [ "$(cat /etc/hostname)" = "curacao.geoffrey.frogeye.fr" ] +then + echo 1 | sudo tee /sys/class/backlight/intel_backlight/brightness +fi automatrop -e base16_scheme=solarized-dark --tags color