From 42ce613f540595279edecf792e4216780623ee7d Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 9 Apr 2025 15:31:18 +0200 Subject: [PATCH] hyprland/exec.nix: add uwsm finalize and start hyprlock automatically --- modules/wms/wayland/hyprland/exec.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/wms/wayland/hyprland/exec.nix b/modules/wms/wayland/hyprland/exec.nix index 6a2c5f5..c3b09cf 100644 --- a/modules/wms/wayland/hyprland/exec.nix +++ b/modules/wms/wayland/hyprland/exec.nix @@ -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}" ]; }; }