summaryrefslogtreecommitdiff
path: root/home/ebisu/meta/desktop
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-29 15:35:30 -0700
committerFuwn <[email protected]>2024-08-29 15:35:30 -0700
commitfa16bf82075a2cc58e605017d0217ec5eff5ff77 (patch)
tree5eeed79ba692ac58beacbe97502b7ff7d57d1c12 /home/ebisu/meta/desktop
parenthi (diff)
downloadnixos-config-fa16bf82075a2cc58e605017d0217ec5eff5ff77.tar.xz
nixos-config-fa16bf82075a2cc58e605017d0217ec5eff5ff77.zip
hi
Diffstat (limited to 'home/ebisu/meta/desktop')
-rw-r--r--home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix21
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 = [
{