Package powerlock in extras-devel (and my repository) implements lock and unlock on single power key press.