Former-commit-id: a189d592ed
This commit is contained in:
Hadi
2024-03-13 19:26:10 +01:00
parent c5e82fed04
commit 74473f7bf8
12 changed files with 71 additions and 111 deletions

View File

@@ -1,23 +1,23 @@
{ pkgs, ... }: {
{ config, pkgs, ... }: {
home.packages = with pkgs; [ hypridle ];
xdg.configFile."hypr/hypridle.conf".text = ''
general {
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
ignore_dbus_inhibit = false
}
# Screenlock
listener {
timeout = 600 # in seconds
on-timeout = hyprlock # command to run when timeout has passed
on-resume = notify-send "Welcome back hadi!" # command to run when activity is detected after timeout has fired.
timeout = 600
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
}
# Suspend
listener {
timeout = 660 # in seconds
on-timeout = systemctl suspend # command to run when timeout has passed
# on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired.
timeout = 660
on-timeout = systemctl suspend
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
}
'';
}