[hyprland] enabled and configured hypridle
This commit is contained in:
parent
b20bd6703b
commit
77d64d781e
@ -1,6 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hypridle.nix
|
||||
./hyprland.nix
|
||||
./hyprland-bindings.nix
|
||||
./hyprland-execution.nix
|
||||
|
44
nix/home/hyprland/hypridle.nix
Normal file
44
nix/home/hyprland/hypridle.nix
Normal 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
|
||||
}
|
||||
'';
|
||||
}
|
@ -19,6 +19,9 @@
|
||||
# start blueman
|
||||
exec = blueman-tray
|
||||
|
||||
# start hypridle
|
||||
exec-once = hypridle
|
||||
|
||||
# theming
|
||||
exec = ~/.dotfiles/apps/wallpaper/startup.sh
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
brightnessctl
|
||||
grim
|
||||
unstable.grimblast
|
||||
unstable.hypridle
|
||||
unstable.hyprlock
|
||||
imagemagick
|
||||
jq
|
||||
|
Reference in New Issue
Block a user