fixup! Hyprland: inhibit idle if fullscreen
This commit is contained in:
parent
7b17d39165
commit
e7371a9a7c
1 changed files with 29 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ in
|
||||||
# ./dunst.nix
|
# ./dunst.nix
|
||||||
# ./wlsunset.nix
|
# ./wlsunset.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./swayidle.nix
|
# ./swayidle.nix
|
||||||
./swaynotificationcenter.nix
|
./swaynotificationcenter.nix
|
||||||
./wl_update_background.nix
|
./wl_update_background.nix
|
||||||
./hyprland-bluetooth-keyboard.nix
|
./hyprland-bluetooth-keyboard.nix
|
||||||
|
|
@ -47,6 +47,34 @@ in
|
||||||
network-manager-applet.enable = true;
|
network-manager-applet.enable = true;
|
||||||
blueman-applet.enable = true;
|
blueman-applet.enable = true;
|
||||||
|
|
||||||
|
hypridle = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
# ignore_dbus_inhibit = false;
|
||||||
|
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
||||||
|
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display
|
||||||
|
};
|
||||||
|
listener = [
|
||||||
|
{
|
||||||
|
timeout = 60;
|
||||||
|
on-timeout = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000";
|
||||||
|
on-resume = "${pkgs.brillo}/bin/brillo -e -I";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 120;
|
||||||
|
on-timeout = "${pkgs.brillo}/bin/brillo -e -S 0; loginctl lock-session ";
|
||||||
|
on-resume = "${pkgs.brillo}/bin/brillo -e -S 100";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 330; # 5.5min
|
||||||
|
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
|
||||||
|
on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
hyprpaper = {
|
hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue