minimalhypr-temp (#2)
Reviewed-on: https://codeberg.org/serenity-F/nixdots/pulls/2 Co-authored-by: Serenity-F <serenity-amalgam@protonmail.com> Co-committed-by: Serenity-F <serenity-amalgam@protonmail.com>
This commit is contained in:
parent
98385be833
commit
ee320f5205
28 changed files with 1783 additions and 94 deletions
23
home/hyprland/hypridle.nix
Normal file
23
home/hyprland/hypridle.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs; [ hypridle ];
|
||||
|
||||
xdg.configFile."hypr/hypridle.conf".text = ''
|
||||
general {
|
||||
ignore_dbus_inhibit = false
|
||||
}
|
||||
|
||||
# Screenlock
|
||||
listener {
|
||||
timeout = 600
|
||||
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
|
||||
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
|
||||
}
|
||||
|
||||
# Suspend
|
||||
listener {
|
||||
timeout = 660
|
||||
on-timeout = systemctl suspend
|
||||
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
|
||||
}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue