mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 10:35:13 -05:00
feat: added some exec stuff
This commit is contained in:
parent
569d969ecc
commit
42316e4a2a
84 changed files with 25 additions and 9 deletions
22
home/modules/hyprland/hypridle/config/settings.nix
Executable file
22
home/modules/hyprland/hypridle/config/settings.nix
Executable file
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
general = {
|
||||
lock_cmd = "pidof swaylock || swaylock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
};
|
||||
listener = [
|
||||
{
|
||||
timeout = 150;
|
||||
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 0";
|
||||
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
|
||||
}
|
||||
{
|
||||
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";
|
||||
}
|
||||
];
|
||||
}
|
18
home/modules/hyprland/hypridle/default.nix
Executable file
18
home/modules/hyprland/hypridle/default.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix) {
|
||||
inherit
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
in {
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
package = flake.inputs.hypridle.packages.${pkgs.system}.hypridle;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue