replace swaylock with nova-shell lock
This commit is contained in:
parent
3c8024045e
commit
4c82ecd2b9
5 changed files with 42 additions and 42 deletions
27
homeConfigurations/muede/swayidle.nix
Normal file
27
homeConfigurations/muede/swayidle.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.swayidle =
|
||||
let
|
||||
lock-command = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
systemdTarget = "graphical-session.target";
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 30;
|
||||
command = lock-command;
|
||||
}
|
||||
{
|
||||
timeout = 60 * 10;
|
||||
command = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
}
|
||||
];
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue