From d4be6c18c9d3da3af9dfd6d071b58be315ed252c Mon Sep 17 00:00:00 2001 From: Jurn Wubben Date: Sat, 24 May 2025 00:24:05 +0200 Subject: [PATCH] Removed dead code for fingerprint popup --- home/wayland/hyprland/binds.nix | 5 +---- home/wayland/hyprland/settings.nix | 18 +++++------------- system/hardware/fingerprint.nix | 2 -- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/home/wayland/hyprland/binds.nix b/home/wayland/hyprland/binds.nix index 1b2ef8d..9154f2f 100644 --- a/home/wayland/hyprland/binds.nix +++ b/home/wayland/hyprland/binds.nix @@ -8,7 +8,7 @@ }: let inherit (lib) getExe; inherit (config.lib.stylix.colors) base0D; - inherit (osConfig.niksos) desktop games portable fingerprint; + inherit (osConfig.niksos) games portable; runOnce = program: "pgrep ${program} || uwsm app -- ${program}"; uwsm = getExe pkgs.uwsm; @@ -115,9 +115,6 @@ in { ]) ++ lib.optionals portable [ "$m Shift, S, exec, ${somcli}" - ] - ++ lib.optionals fingerprint [ - ", XF86PowerOff, exec, pgrep fprintd-verify || ${uwsm} app -- ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'" #NOTE: Also check home/wayland/hyprland/settings + system/hardware/fingerprint ]; bindl = [ diff --git a/home/wayland/hyprland/settings.nix b/home/wayland/hyprland/settings.nix index 4b97d18..fc688eb 100644 --- a/home/wayland/hyprland/settings.nix +++ b/home/wayland/hyprland/settings.nix @@ -1,8 +1,4 @@ { - lib, - osConfig, - ... -}: { wayland.windowManager.hyprland.settings = { xwayland = { force_zero_scaling = true; @@ -93,15 +89,11 @@ vrr = 1; }; - windowrule = - [ - "float, class:com.github.phase1geo.annotator" - "float, class:foot-somcli" - "size >30% >30%, class:foot-somcli" - ] - ++ lib.optionals osConfig.niksos.fingerprint [ - "float, class:foot-fprintd" - ]; + windowrule = [ + "float, class:com.github.phase1geo.annotator" + "float, class:foot-somcli" + "size >30% >30%, class:foot-somcli" + ]; #NOTE: Also check home/wayland/hyprland/binds + system/hardware/fingerprint }; } diff --git a/system/hardware/fingerprint.nix b/system/hardware/fingerprint.nix index d683549..69b18ed 100644 --- a/system/hardware/fingerprint.nix +++ b/system/hardware/fingerprint.nix @@ -9,8 +9,6 @@ uwsm = lib.getExe pkgs.uwsm; foot = lib.getExe pkgs.foot; in { - #NOTE: Also check home/wayland/hyprland/settings + home/wayland/hyprland/binds - options.niksos.fingerprint = mkEnableOption "fingerprint support."; config = mkIf fingerprint { services.fprintd.enable = true;