~scriptsdisplay
10 itemsDownload ./*

10 itemsDownload ./*

..
ana-wall-login.sh
ana-wall-next.sh
ana-wall-refresh.sh
ana-wall.sh
brightness.sh
brightness_change
keep-on.sh
screen-dim
screenshot.sh
xorient.sh


displaybrightness_change
54•  2 months ago•  DownloadRawClose
2 months ago•  54

{}
#!/bin/bash

brightness="/sys/class/backlight/acpi_video0/brightness"
presbright=`cat /sys/class/backlight/acpi_video0/brightness`
perc=`expr $presbright "*" 100 "/" 15`

case "$1" in
	up)
	  echo $(( ${presbright} + 1 )) > $brightness
	  sudo -u $user notify-send " " -i notification-display-brightness-low -h int:value:$perc -h string:x-canonical-private-synchronous:brightness &
	;;
	down)
	  echo $(( ${presbright} - 1 )) > $brightness
	  sudo -u $user notify-send " " -i notification-display-brightness-low -h int:value:$perc -h string:x-canonical-private-synchronous:brightness &
	;;
	status)
	  echo $presbright
	;;
	*)
	  echo "Accepted arguments are: up, down, status."
	;;
esac

exit 0

Top
©twily.info 2013 - 2024
twily at twily dot info



2 119 985 visits
... ^ v