swaylock and swayidle
This commit is contained in:
parent
cd2c8228a8
commit
6cc4642526
4 changed files with 57 additions and 4 deletions
|
@ -13,8 +13,7 @@
|
|||
|
||||
services.logind = {
|
||||
powerKey = "poweroff";
|
||||
powerKeyLongPress = "reboot";
|
||||
lidSwitch = "poweroff";
|
||||
lidSwitch = "suspend";
|
||||
};
|
||||
|
||||
home-manager.users.${config.username} = {
|
||||
|
@ -38,6 +37,19 @@
|
|||
style = builtins.readFile(./waybar.conf.css);
|
||||
};
|
||||
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = import ./swaylock.conf.nix { lib = lib; config = config; };
|
||||
};
|
||||
|
||||
programs.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
||||
];
|
||||
};
|
||||
|
||||
services.mako = {
|
||||
enable = true;
|
||||
defaultTimeout = 5000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue