viernes, 4 de octubre de 2024

editor de brillo de la pantalla por terminal - script

#!/bin/bash

#editor de brillo por terminal
# Friday, October 04 2024
# 17:34
#by AlexLikeRock

#instructions
#search "brightness" inside of  /sys/class/backlight/
#examples:
#  /sys/class/backlight/acpi_video0/brightness
#  /sys/class/backlight/nv_backlight/brightness
#  /sys/class/backlight/XXXXXXXX/brightness

#2 options :
#1).- run this script as ROOT
#2).-  run this script as normal user, but you need change permissions  of the file  brightness: 

#1).- Ejecuta este script como ROOT
#2).- Ejecuta este script como usuario normal, pero necesitas cambiar los permisos del brillo del archivo:


#   # chmod 777 /sys/class/backlight/XXXXXXXX/brightness

#other different way :
# xrandr --output LVDS-1 --brightness 0  ## screen OFF ##
# xrandr --output LVDS-1 --brightness 0.1 # minimal #
# xrandr --output LVDS-1 --brightness 0.2
# xrandr --output LVDS-1 --brightness 0.5
# xrandr --output LVDS-1 --brightness 0.7
# xrandr --output LVDS-1 --brightness 1    #max brightness#
# xrandr --output LVDS-1 --brightness 2    # bad option #



echo "poner numero del 1 al 100"
read -r  option  

echo $option  >  /sys/class/backlight/nv_backlight/brightness
echo "se puso el brillo al "  $option  "%"
echo "listo"
exit 0

No hay comentarios:

Publicar un comentario

Donarme :->

Donar a AlexLikeRock
muchas gracias por tu ayuda :->

editor de brillo de la pantalla por terminal - script

#!/bin/bash #editor de brillo por terminal # Friday, October 04 2024 # 17:34 #by AlexLikeRock #instructions #search "brightness" i...