From 9dac84c1bc8d19d04974bd5e8a1346758f84ebae Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 17 Aug 2023 19:40:36 +0900 Subject: [PATCH] swayidle --- hosts/nixos-laptop/home-manager/hyprland-conf.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/nixos-laptop/home-manager/hyprland-conf.nix b/hosts/nixos-laptop/home-manager/hyprland-conf.nix index 1e9ffd77..499bf32b 100644 --- a/hosts/nixos-laptop/home-manager/hyprland-conf.nix +++ b/hosts/nixos-laptop/home-manager/hyprland-conf.nix @@ -212,13 +212,15 @@ gsettings set org.gnome.desktop.interface font-name 'JetBrains Regular Nerd' - polkit-kde-authentication-agent-1 swww init & # Sets a random wallpaper WALLPAPER_DIR=/etc/nixos/git/desktops/wallpapers/gruvbox swww img $WALLPAPER_DIR/wallpaper$((1 + $RANDOM % $(ls $WALLPAPER_DIR | wc -l))).jpg & # nm-applet --indicator & waybar & + + # Set up the idle management daemon + swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' before-sleep 'swaylock -f -c 000000' mako ''; };