diff options
Diffstat (limited to 'home/ebisu/meta/desktop')
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix index 2577702..51dddd9 100644 --- a/home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ pkgs, config, ... }: let colourScheme = builtins.fromJSON ( builtins.readFile "${config.home.homeDirectory}/.cache/wal/colors.json" @@ -9,6 +9,21 @@ in programs.hyprlock = { enable = true; + # https://github.com/hyprwm/hyprlock/issues/128#issuecomment-2063629880 + package = pkgs.hyprlock.overrideAttrs (old: { + version = "git"; + src = pkgs.fetchFromGitHub { + owner = "hyprwm"; + repo = "hyprlock"; + rev = "2bce52f"; + sha256 = "36qa6MOhCBd39YPC0FgapwGRHZXjstw8BQuKdFzwQ4k="; + }; + patchPhase = '' + substituteInPlace src/core/hyprlock.cpp \ + --replace "5000" "16" + ''; + }); + settings = { general = { disable_loading_bar = false; @@ -17,7 +32,9 @@ in grace = 10; }; - background = [ { path = "${config.home.homeDirectory}/.local/share/bg"; } ]; + background = [ + { path = "${config.home.homeDirectory}/nixos-config/home/${config.home.username}/wallpaper.png"; } + ]; input-field = [ { |