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