[hyprland] Re-configure swayidle as a service
This commit is contained in:
1 parent
aa2cec9f70
commit
e2e32fb6cd
1 file changed
+10
-1
@@ -1,7 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
swayidle # lock on idle
|
||||
swayosd # volume pop-up
|
||||
swaynotificationcenter # notifications
|
||||
hyprpolkitagent # Privilege managent
|
||||
@@ -12,6 +11,16 @@
|
||||
xclip
|
||||
];
|
||||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "hyprlock";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
|
||||
Reference in new issue
Block a user