92 lines
2.2 KiB
Nix
92 lines
2.2 KiB
Nix
{ pkgs, config, lib, ... }:
|
|
{
|
|
programs.hyprlock.enable = true;
|
|
services.hypridle = {
|
|
enable = true;
|
|
settings = {
|
|
# $lock_cmd = pidof hyprlock || hyprlock
|
|
# $suspend_cmd = pidof steam || systemctl suspend || loginctl suspend # fuck nvidia
|
|
|
|
general = {
|
|
lock_cmd = "pidof hyprlock || hyprlock";
|
|
before_sleep_cmd = "loginctl lock-session";
|
|
};
|
|
|
|
listener = [
|
|
{
|
|
timeout = 5400;
|
|
on-timeout = "loginctl lock-session";
|
|
}
|
|
|
|
{
|
|
timeout = 7200;
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
|
|
{
|
|
timeout = 10800;
|
|
on-timeout = "pidof steam || systemctl suspend || loginctl suspend";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
programs.wlogout = {
|
|
enable = true;
|
|
layout = [
|
|
{
|
|
label = "lock";
|
|
action = "loginctl lock-session";
|
|
text = "Lock";
|
|
keybind = "l";
|
|
circular = false;
|
|
}
|
|
{
|
|
label = "hibernate";
|
|
action = "systemctl hibernate";
|
|
text = "Hibernate";
|
|
keybind = "h";
|
|
circular = false;
|
|
}
|
|
{
|
|
label = "logout";
|
|
action = "hyprctl dispatch exit";
|
|
text = "Logout";
|
|
keybind = "e";
|
|
circular = false;
|
|
}
|
|
{
|
|
label = "shutdown";
|
|
action = "systemctl poweroff";
|
|
text = "Shutdown";
|
|
keybind = "s";
|
|
circular = false;
|
|
}
|
|
{
|
|
label = "suspend";
|
|
action = "systemctl suspend";
|
|
text = "Suspend";
|
|
keybind = "u";
|
|
circular = false;
|
|
}
|
|
{
|
|
label = "reboot";
|
|
action = "systemctl reboot";
|
|
text = "Reboot";
|
|
keybind = "r";
|
|
circular = false;
|
|
}
|
|
];
|
|
};
|
|
services.swayosd = {
|
|
enable = true;
|
|
display = "DP-4";
|
|
};
|
|
services.mako.enable = true;
|
|
|
|
imports = [
|
|
(import ../pkgs/wm/hyprland/hyprland.nix { pkgs = pkgs; })
|
|
(import ../pkgs/wm/waybar/waybar.nix { inherit config; pkgs = pkgs; })
|
|
(import ../pkgs/wm/mako/mako.nix { config = config; pkgs = pkgs; lib=lib; })
|
|
];
|
|
} |