My quick notes
  • Blog
  • Game
  • Series
  • Tags
  • About
  • Tiếng Việt
  • Search
My quick notes

Search My quick notes

Night_mode


Turn on night mode with xrandr

 Posted on May 9, 2019  • Other languages: Tiếng Việt

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
[Read More]
xrandr  night_mode 

 • © 2025  •  My quick notes

Hugo v0.140.2 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll