feat: tidying up some stuff

This commit is contained in:
Nick 2025-01-24 22:56:53 -06:00
parent 9526cf7ca4
commit 3c86475c02
13 changed files with 65 additions and 38 deletions

View file

@ -1,23 +1,23 @@
{ pkgs, ... }:
{
pkgs,
...
}:
{
general = {
lock_cmd = "pidof swaylock || swaylock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "swaylock";
};
listener = [
{
timeout = 150;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 0";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
timeout = 900;
on-timeout = "swaylock";
}
{
timeout = 150;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd rgb:kbd_backlight set 0";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -rd rgb:kbd_backlight";
}
{
timeout = 300;
on-timeout = "systemctl suspend";
timeout = 1800;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
}