From 6224996598f862c7b81ceb54ccd4db2c7dbe6d2e Mon Sep 17 00:00:00 2001 From: serenity-F Date: Mon, 2 Mar 2026 17:26:41 +1000 Subject: [PATCH] removed `hyprlock` --- home/desktop/default.nix | 1 - home/desktop/hyprlock.nix | 64 ------------------------------------- home/desktop/niri/binds.nix | 2 +- 3 files changed, 1 insertion(+), 66 deletions(-) delete mode 100755 home/desktop/hyprlock.nix diff --git a/home/desktop/default.nix b/home/desktop/default.nix index 473ab75..2498aa6 100755 --- a/home/desktop/default.nix +++ b/home/desktop/default.nix @@ -15,7 +15,6 @@ in { # Import common desktop configs ./xdg-mime.nix # file associations ./hyprcursor.nix # mouse cursor - ./hyprlock.nix # screen locker ./wofi.nix # launcher ./niri # WM diff --git a/home/desktop/hyprlock.nix b/home/desktop/hyprlock.nix deleted file mode 100755 index bd58b62..0000000 --- a/home/desktop/hyprlock.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ config, pkgs, ... }: { - - home.packages = with pkgs; [ - hyprlock - ]; - - xdg.configFile."hypr/hyprlock.conf".text = '' - background { - monitor = - path = ${config.theme.lockscreenWallpaper} - color = rgb(${config.theme.colors.bg}) - - blur_size = 4 - blur_passes = 3 - noise = 0.0117 - contrast = 1.3000 - brightness = 0.8000 - vibrancy = 0.2100 - vibrancy_darkness = 0.0 - } - - input-field { - monitor = - size = 250, 50 - outline_thickness = 3 - dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 - dots_spacing = 0.64 # Scale of dots' absolute size, 0.0 - 1.0 - dots_center = true - outer_color = rgb(${config.theme.colors.primary-bg}) - inner_color = rgb(${config.theme.colors.bg}) - font_color = rgb(${config.theme.colors.fg}) - fade_on_empty = true - placeholder_text = Password... # Text rendered in the input box when it's empty. - hide_input = false - position = 0, 50 - halign = center - valign = bottom - } - - # Current time - label { - monitor = - text = cmd[update:1000] echo " $(date +"%H:%M:%S") " - color = rgb(${config.theme.colors.fg}) - font_size = 64 - font_family = ${config.theme.font} - position = 0, 16 - halign = center - valign = center - } - - # Type to unlock - label { - monitor = - text = Enter passowrd: - color = rgb(${config.theme.colors.fg}) - font_size = 16 - font_family = ${config.theme.font} - position = 0, 30 - halign = center - valign = bottom - } - ''; -} diff --git a/home/desktop/niri/binds.nix b/home/desktop/niri/binds.nix index 637f847..62d8881 100755 --- a/home/desktop/niri/binds.nix +++ b/home/desktop/niri/binds.nix @@ -20,7 +20,7 @@ # Session management "Ctrl+Alt+Delete".action = quit; # Log out - "Mod+Escape".action.spawn = "hyprlock"; # Screen lock + #"Mod+Escape".action.spawn = "hyprlock"; # Screen lock "Mod+Shift+P".action = power-off-monitors; # Power saving # Task management