From 9a4b7f4eb875e6482610c6ed9b0057a3034b1132 Mon Sep 17 00:00:00 2001 From: Szymon P Date: Wed, 30 Apr 2025 19:29:16 +0200 Subject: [PATCH] Add .local/bin/brightness.sh --- private_dot_local/bin/executable_brightness.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 private_dot_local/bin/executable_brightness.sh diff --git a/private_dot_local/bin/executable_brightness.sh b/private_dot_local/bin/executable_brightness.sh new file mode 100644 index 0000000..2b78a41 --- /dev/null +++ b/private_dot_local/bin/executable_brightness.sh @@ -0,0 +1,9 @@ +#!/usr/bin/bash + +if [[ $1 == "up" ]]; then + ddcutil -d 1 setvcp 10 100 && ddcutil -d 2 setvcp 10 100 +elif [[ $1 == "down" ]]; then + ddcutil -d 1 setvcp 10 30 && ddcutil -d 2 setvcp 10 0 +else + echo "Usage: brightness.sh [up/down]" +fi