pmaports/main/postmarketos-ui-i3wm/lock.sh
Martijn Braam 64166249da postmarketos-ui-i3wm (#1225)
* Added a ui package for i3wm

* Added n900 specific i3wm config

* Fixed mixed tabs and spaces in i3status.

This is also the first commit made on an n900
running postmarketOS.

* Removed redundant X11

* Use lock.sh to lock the device

* Windows management improvements

* bump pkgver

* Fix device-nokia-n900 checksums

* Fixed path in the i3wm split package
2018-02-20 11:21:03 +01:00

12 lines
234 B
Bash

#!/bin/sh
FILE=~/tmp/screenoff
if [ -f $FILE ]; then
xinput set-prop 8 "Device Enabled" 1
xset dpms force on
rm ~/.screenoff
else
xset dpms force off
xinput set-prop 8 "Device Enabled" 0
touch ~/.screenoff
fi