Skip to content

Instantly share code, notes, and snippets.

@chaoxu
Last active June 21, 2016 02:29
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 chaoxu/702ea70a170fd97d2e1f7906238e6441 to your computer and use it in GitHub Desktop.
Save chaoxu/702ea70a170fd97d2e1f7906238e6441 to your computer and use it in GitHub Desktop.
Log of things for setting up my linux
#!/bin/sh
# See jakobm's code at https://bbs.archlinux.org/viewtopic.php?pid=903057#p903057
( slock && xset dpms 0 0 600 ) &
xset dpms 0 0 2
xset dpms force standby

Lock screen and standby the monitor

Just check lock.sh. It's important to also remove any auto screensaver program. For example, I removed mate-screensaver from startup programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment