it works :D
This commit is contained in:
parent
eeb9ce59d9
commit
270e52070d
13 changed files with 785 additions and 1007 deletions
|
|
@ -4,7 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.horseman.wm.hyprland;
|
||||
in {
|
||||
imports = [
|
||||
|
|
@ -12,6 +12,10 @@ in {
|
|||
./keybindings.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
horseman.wm.hyprland.enable = mkEnableOption "Hyprland";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
|
@ -47,6 +51,7 @@ in {
|
|||
"hypridle"
|
||||
"hyprpaper"
|
||||
"swaync"
|
||||
"systemctl --user start hyprpolkitagent"
|
||||
];
|
||||
|
||||
env = [
|
||||
|
|
@ -261,6 +266,7 @@ in {
|
|||
|
||||
misc = {
|
||||
forceDefaultWallpaper = 0;
|
||||
keyPressEnablesDPMS = true;
|
||||
};
|
||||
|
||||
input = {
|
||||
|
|
@ -280,6 +286,22 @@ in {
|
|||
monitors = {
|
||||
defaultMonitor = true;
|
||||
};
|
||||
|
||||
sleep = {
|
||||
lockCommand = "pidof hyprlock || hyprlock";
|
||||
|
||||
listeners = [
|
||||
{
|
||||
timeout = 300;
|
||||
onTimeout = "hyprctl dispatch dpms off";
|
||||
onResume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
{
|
||||
timeout = 310;
|
||||
onTimeout = "loginctl lock-session";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.logind.extraConfig = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue