[hyprland] enabled and configured hypridle

This commit is contained in:
Simon Cornet 2024-03-30 13:07:34 +01:00
parent b20bd6703b
commit 77d64d781e
4 changed files with 49 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./hypridle.nix
./hyprland.nix ./hyprland.nix
./hyprland-bindings.nix ./hyprland-bindings.nix
./hyprland-execution.nix ./hyprland-execution.nix

View File

@ -0,0 +1,44 @@
{ config, ... }:
{
# include hyprland configs
home.file.".config/hypr/hypridle.conf".text = ''
# general
general {
ignore_dbus_inhibit = false
}
# listeners
# notify inactivity
listener {
timeout = 45
on-timeout = notify-send -t 4000 "Are you there ?"
}
listener {
timeout = 50
on-timeout = notify-send -t 4000 "Are you there ??"
}
listener {
timeout = 55
on-timeout = notify-send -t 4000 "Are you there ???"
}
# lock screen
listener {
timeout = 60
on-timeout = hyprlock
}
# suspend after 5 minutes
listener {
timeout = 500
on-timeout = systemctl suspend
}
'';
}

View File

@ -19,6 +19,9 @@
# start blueman # start blueman
exec = blueman-tray exec = blueman-tray
# start hypridle
exec-once = hypridle
# theming # theming
exec = ~/.dotfiles/apps/wallpaper/startup.sh exec = ~/.dotfiles/apps/wallpaper/startup.sh

View File

@ -25,6 +25,7 @@
brightnessctl brightnessctl
grim grim
unstable.grimblast unstable.grimblast
unstable.hypridle
unstable.hyprlock unstable.hyprlock
imagemagick imagemagick
jq jq