add swayidle to hyprland because we have no systemd-target
This commit is contained in:
parent
46dbd0c4bb
commit
a0cebb8101
@ -113,6 +113,7 @@
|
|||||||
exec-once=${pkgs.swaybg}/bin/swaybg -m center -i $HOME/.config/wall
|
exec-once=${pkgs.swaybg}/bin/swaybg -m center -i $HOME/.config/wall
|
||||||
exec-once=${pkgs.waybar}/bin/waybar
|
exec-once=${pkgs.waybar}/bin/waybar
|
||||||
exec-once=${pkgs.blueman}/bin/blueman-applet
|
exec-once=${pkgs.blueman}/bin/blueman-applet
|
||||||
|
exec-once=${pkgs.swayidle}/bin/swayidle -w timeout 600 "${pkgs.swaylock}/bin/swaylock -f" timeout 300 "${pkgs.hyprland}/bin/hyprctl dispatch dpms off" resume "${pkgs.hyprland}/bin/hyprctl dispatch dpms on" before-sleep "${pkgs.swaylock}/bin/swaylock -f"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
programs.swaylock.settings = {
|
programs.swaylock.settings = {
|
||||||
@ -123,7 +124,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
enable = true;
|
enable = false;
|
||||||
events = [
|
events = [
|
||||||
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
||||||
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user