works like this
This commit is contained in:
parent
bff68c0cb2
commit
cd1c6eb934
2 changed files with 2 additions and 11 deletions
|
@ -20,6 +20,7 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
brightnessctl
|
brightnessctl
|
||||||
swaybg
|
swaybg
|
||||||
|
swayidle
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
|
@ -43,16 +44,6 @@
|
||||||
settings = import ./swaylock.conf.nix { lib = lib; config = config; };
|
settings = import ./swaylock.conf.nix { lib = lib; config = config; };
|
||||||
};
|
};
|
||||||
|
|
||||||
services.swayidle = {
|
|
||||||
enable = true;
|
|
||||||
events = [
|
|
||||||
{ event = "before-sleep"; command = "swaylock"; }
|
|
||||||
];
|
|
||||||
timeouts = [
|
|
||||||
{ timeout = 5; command = "swaylock"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.mako = {
|
services.mako = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultTimeout = 5000;
|
defaultTimeout = 5000;
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
{ command = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0"]; }
|
{ command = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0"]; }
|
||||||
{ command = ["brightnessctl" "s" "50%"]; }
|
{ command = ["brightnessctl" "s" "50%"]; }
|
||||||
{ command = ["swaybg" "-c" "1f1d2e"]; }
|
{ command = ["swaybg" "-c" "1f1d2e"]; }
|
||||||
{ command = ["systemctl" "--user" "restart" "swayidle.service"]; }
|
{ command = ["swayidle" "-w" "before-sleep" "swaylock"]; }
|
||||||
];
|
];
|
||||||
|
|
||||||
binds = {
|
binds = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue