From 4b722140913721de28c7062cbc8467275b5e93ab Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Fri, 26 Aug 2022 20:56:13 +0200 Subject: [PATCH] octopus changes Signed-off-by: Frank Villaro-Dixon --- Utils/octopus.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Utils/octopus.sh b/Utils/octopus.sh index 9ede480..bcfcf27 100755 --- a/Utils/octopus.sh +++ b/Utils/octopus.sh @@ -1,5 +1,5 @@ #!/bin/bash -#set -x +set -x #OCTOPUS=~/Programmation/Utils/octopus.sh #This octopus handles all the actions like volume up, refresh status bar, etc.. @@ -26,6 +26,17 @@ case $1 in $0 refresh ;; + "brightness"|"bright") + case $2 in + "up") + sudo brightnessctl set "+5%" + ;; + "down") + sudo brightnessctl set "5%-" + ;; + esac + ;; + "monitor") #SNU=`xrandr | grep VGA | cut -d' ' -f1 | cut -c4`