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`