Skip to content

Instantly share code, notes, and snippets.

@nocke
Last active April 7, 2020 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nocke/e55c698cb5762396b201251a7d73860e to your computer and use it in GitHub Desktop.
Save nocke/e55c698cb5762396b201251a7d73860e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
xset +dpms
xset dpms force standby
sleep 1
xset dpms force suspend
sleep 1
xset dpms force off
sleep 1
xset dpms force on
sleep 1
#xrandr -q | grep "connected"
xrandr --output HDMI1 --brightness 0.2
sleep 2
xrandr --output HDMI1 --brightness 1.0
xset s noblank
/usr/bin/xsetroot -solid Black
xset s activate
sleep 1
xset s activate
sleep 1
xset dpms force on
/usr/bin/xsetroot -solid Red
xset s activate
sleep 1
xset dpms force on
/usr/bin/xsetroot -solid Green
xset s activate
sleep 1
xset dpms force on
/usr/bin/xsetroot -solid Blue
xset s activate
sleep 1
xset dpms force on
/usr/bin/xsetroot -solid White
xset s activate
sleep 1
xset s off
xset dpms force on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment