mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
fix scaling
This commit is contained in:
parent
0b68116260
commit
5eacd2aa45
7 changed files with 200 additions and 4 deletions
29
home/environments/hyprland/hypridle.nix.old
Normal file
29
home/environments/hyprland/hypridle.nix.old
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{pkgs, ...}: {
|
||||
services.hypridle = {
|
||||
enable = false;
|
||||
listeners = [
|
||||
{
|
||||
timeout = 150;
|
||||
onTimeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 5";
|
||||
onResume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
|
||||
}
|
||||
{
|
||||
timeout = 300;
|
||||
onTimeout = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
}
|
||||
{
|
||||
timeout = 330;
|
||||
onTimeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
|
||||
onResume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
onTimeout = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
}
|
||||
];
|
||||
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
afterSleepCmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
|
||||
lockCmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
|
||||
unlockCmd = "${pkgs.psmisc}/bin/killall hyprlock";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue