diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-11-05 18:28:29 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-11-05 20:02:50 +0100 |
commit | c74b4cd93e8618ac01b099087396e3283806a35e (patch) | |
tree | a2b08b7c603d81a0c6a153a31f85bdc7dba8cc36 /modules/i3/default.nix | |
parent | 88a10f1a6e2ea172ff985f64bfcf82e26425530a (diff) |
Integrate console lock screen into i3.
Now it's enough to just press super + shift + escape in order to trigger the socket and thus the lock screen. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/i3/default.nix')
-rw-r--r-- | modules/i3/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 5e2b9998..7e2795d9 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -106,6 +106,12 @@ in inherit (pkgs.xorg) xsetroot; inherit wsConfig barConfig; + lockall = pkgs.writeScript "lockvt.sh" '' + #!${pkgs.stdenv.shell} + "${pkgs.socat}/bin/socat" - UNIX-CONNECT:/run/console-lock.sock \ + < /dev/null + ''; + postInstall = '' ${pkgs.i3}/bin/i3 -c "$target" -C ''; |