Add swayidle
This commit is contained in:
parent
7a9063e85b
commit
1003e33c38
2 changed files with 5 additions and 3 deletions
|
@ -53,12 +53,16 @@
|
||||||
{
|
{
|
||||||
command = "${pkgs.mako}/bin/mako";
|
command = "${pkgs.mako}/bin/mako";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
command = "${pkgs.swayidle}/bin/swayidle -w timeout 300 '${pkgs.swaylock}/bin/swaylock' timeout 305 '${pkgs.sway}/bin/swaymsg \"output * dpms off\"' resume '${pkgs.sway}/bin/swaymsg \"output * dpms on\"' lock '${pkgs.swaylock}/bin/swaylock' unlock '${pkgs.procps}/bin/pkill swayidle'";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".XCompose".source = ../../extra/.XCompose;
|
home.file.".XCompose ".source = ../../extra/.XCompose;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
swaylock
|
|
||||||
swayidle
|
|
||||||
xwayland
|
xwayland
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
(python38.withPackages (ps: with ps; [ i3pystatus keyring ]))
|
(python38.withPackages (ps: with ps; [ i3pystatus keyring ]))
|
||||||
|
|
Loading…
Reference in a new issue