Skip to content

Commit

Permalink
Added screen blanking scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-parlette committed May 11, 2015
1 parent c541c0e commit 395bfef
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ Generate a multi-file python program in the current directory with:
* plugin framework

$ bootstrap-python -p myscript.py

## *-screen-blank

These two scripts will enable or disable the screen blanking in X. This is used in i3 or on the Raspberry Pi.

```
$ disable-screen-blank # Screen is always on
$ enable-screen-blank # Screen will blank after a timeout
```
4 changes: 4 additions & 0 deletions disable-screen-blank
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
xset -display :0 s off
xset -display :0 -dpms
xset -display :0 s noblank
4 changes: 4 additions & 0 deletions enable-screen-blank
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
xset -display :0 s on
xset -display :0 +dpms
xset -display :0 s blank

0 comments on commit 395bfef

Please sign in to comment.