Create a script file night_mode
#!/bin/sh
night_mode() {
xrandr --output VGA-1 --gamma $1 --brightness $2
}
case $1 in
off) night_mode 1:1:1 1.0 ;;
*) night_mode 1:0.85:0.6 1.0 ;;
esac
Create a script file night_mode
#!/bin/sh
night_mode() {
xrandr --output VGA-1 --gamma $1 --brightness $2
}
case $1 in
off) night_mode 1:1:1 1.0 ;;
*) night_mode 1:0.85:0.6 1.0 ;;
esac