greetd, hyprland: fix greeter and lock screen

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit 6e70e952e2
2 changed files with 13 additions and 9 deletions

View file

@ -4,7 +4,7 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (lib.meta) getExe; inherit (lib.meta) getExe getExe';
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
inherit (lib.options) mkOption mkEnableOption; inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) str listOf; inherit (lib.types) str listOf;
@ -36,14 +36,15 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.greetd = let services.greetd = let
session = { session = {
command = '' # command = ''
${pkgs.greetd.tuigreet}/bin/tuigreet \ # ${pkgs.greetd.tuigreet}/bin/tuigreet \
-c \"${cfg.session}\" \ # -c \"${cfg.session}\" \
-r # -r
-t --time-format "DD.MM.YYYY" # -t --time-format "DD.MM.YYYY"
--asteriks''; # --asteriks'';
# command = "${getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
# user = username; command = "${getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
user = username;
}; };
in { in {
enable = true; enable = true;

View file

@ -5,6 +5,7 @@
... ...
}: let }: let
# inherit (config.modules.style) cursor; # inherit (config.modules.style) cursor;
inherit (lib.meta) getExe;
in { in {
programs.hyprland.settings = { programs.hyprland.settings = {
# Hyprland settings # Hyprland settings
@ -13,6 +14,7 @@ in {
"uwsm finalize" "uwsm finalize"
"hyprctl setcursor BreezeX-RosePine-Linux 32" "hyprctl setcursor BreezeX-RosePine-Linux 32"
"hyprctl seterror disable"
"[workspace special:keepassxc; silent;tile] ${pkgs.keepassxc}/bin/keepassxc" "[workspace special:keepassxc; silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
"[workspace special:audio; silent;tile] ${pkgs.pwvucontrol}/bin/pwvucontrol" "[workspace special:audio; silent;tile] ${pkgs.pwvucontrol}/bin/pwvucontrol"
@ -25,6 +27,7 @@ in {
"${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent" "${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent"
"hyprctl dispatch split-workspace 1" "hyprctl dispatch split-workspace 1"
"${getExe pkgs.hyprlock}"
]; ];
}; };
} }