hyprland/exec.nix: add uwsm finalize and start hyprlock automatically

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit 42ce613f54

View file

@ -1,15 +1,18 @@
{
config,
lib,
pkgs,
...
}: let
# inherit (config.modules.style) cursor;
inherit (builtins) toString;
inherit (lib.meta) getExe;
in {
programs.hyprland.settings = {
# Hyprland settings
# Programs which get executed at Hyprland start.
exec-once = [
"uwsm finalize"
"hyprctl setcursor BreezeX-RosePine-Linux 32"
"[workspace special:keepassxc; silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
@ -22,6 +25,8 @@ in {
"${pkgs.wlsunset}/bin/wlsunset -S 06:00 -s 20:00"
"${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent"
"hyprctl dispatch split-workspace 1"
"${getExe pkgs.hyprlock}"
];
};
}