diff options
| author | Andrew <admonty1@protonmail.com> | 2025-08-22 23:48:33 -0400 |
|---|---|---|
| committer | Andrew <admonty1@protonmail.com> | 2025-08-22 23:48:33 -0400 |
| commit | 61fd81562a9a2d7744e05b939948898e25dfb6fc (patch) | |
| tree | 4c21b0e28ddf30a677089d9acb349d1b66270a7b /hyprlock.nix | |
| parent | screenshot manager PRINT / SUPER+SHIFT+S (diff) | |
| download | nixos-61fd81562a9a2d7744e05b939948898e25dfb6fc.tar.gz nixos-61fd81562a9a2d7744e05b939948898e25dfb6fc.tar.bz2 nixos-61fd81562a9a2d7744e05b939948898e25dfb6fc.zip | |
unfixed and fixed ghostty. + reformat files
Diffstat (limited to '')
| -rw-r--r-- | hyprlock.nix | 188 |
1 files changed, 97 insertions, 91 deletions
diff --git a/hyprlock.nix b/hyprlock.nix index f78131b..6321a60 100644 --- a/hyprlock.nix +++ b/hyprlock.nix @@ -1,109 +1,115 @@ -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: let - font = "Monospace"; + font = "Monospace"; in { - programs.hyprlock = { - enable = true; - settings = { - # sample hyprlock.conf - # for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock - # - # rendered text in all widgets supports pango markup (e.g. <b> or <i> tags) - # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks - # - # shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace - # - # you can get started by copying this config to ~/.config/hypr/hyprlock.conf - # - general = { - hide_cursor = false; - }; + programs.hyprlock = { + enable = true; + settings = { + # sample hyprlock.conf + # for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock + # + # rendered text in all widgets supports pango markup (e.g. <b> or <i> tags) + # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks + # + # shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace + # + # you can get started by copying this config to ~/.config/hypr/hyprlock.conf + # + general = { + hide_cursor = false; + }; - # uncomment to enable fingerprint authentication - # auth { - # fingerprint { - # enabled = true - # ready_message = Scan fingerprint to unlock - # present_message = Scanning... - # retry_delay = 250 # in milliseconds - # } - # } + # uncomment to enable fingerprint authentication + # auth { + # fingerprint { + # enabled = true + # ready_message = Scan fingerprint to unlock + # present_message = Scanning... + # retry_delay = 250 # in milliseconds + # } + # } - animations = { - enabled = true; - bezier = "linear, 1, 1, 0, 0"; - animation = ["fadeIn, 1, 5, linear" - "fadeOut, 1, 5, linear" - "inputFieldDots, 1, 2, linear" - ]; - }; + animations = { + enabled = true; + bezier = "linear, 1, 1, 0, 0"; + animation = [ + "fadeIn, 1, 5, linear" + "fadeOut, 1, 5, linear" + "inputFieldDots, 1, 2, linear" + ]; + }; - background = { - monitor = ""; - path = "screenshot"; - blur_passes = 3; - blur_size = 8; - }; + background = { + monitor = ""; + path = "screenshot"; + blur_passes = 3; + blur_size = 8; + }; - input-field = lib.mkForce [ - { - monitor = ""; - size = "20, 5"; - outline_thickness = 3; - inner_color = "rgba(0, 0, 0, 0.0)"; # no fill + input-field = lib.mkForce [ + { + monitor = ""; + size = "20, 5"; + outline_thickness = 3; + inner_color = "rgba(0, 0, 0, 0.0)"; # no fill - outer_color = "rgba(33ccffee) rgba(00ff99ee) 45deg"; - check_color = "rgba(00ff99ee) rgba(ff6633ee) 120deg"; - fail_color = "rgba(ff6633ee) rgba(ff0066ee) 40deg"; + outer_color = "rgba(33ccffee) rgba(00ff99ee) 45deg"; + check_color = "rgba(00ff99ee) rgba(ff6633ee) 120deg"; + fail_color = "rgba(ff6633ee) rgba(ff0066ee) 40deg"; - font_color = "rgb(143, 143, 143)"; - fade_on_empty = false; - rounding = 15; + font_color = "rgb(143, 143, 143)"; + fade_on_empty = false; + rounding = 15; - font_family = "${font}"; - placeholder_text = "Input password..."; - fail_text = "$PAMFAIL"; + font_family = "${font}"; + placeholder_text = "Input password..."; + fail_text = "$PAMFAIL"; - # uncomment to use a letter instead of a dot to indicate the typed password - # dots_text_format = * - # dots_size = 0.4 - dots_spacing = 0.3; + # uncomment to use a letter instead of a dot to indicate the typed password + # dots_text_format = * + # dots_size = 0.4 + dots_spacing = 0.3; - # uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator) - # hide_input = true + # uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator) + # hide_input = true - position = "0, -20"; - halign = "center"; - valign = "center"; - } - ]; + position = "0, -20"; + halign = "center"; + valign = "center"; + } + ]; - # TIME - label = [ - { - monitor = ""; - text = "$TIME"; # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution - font_size = 90; - font_family = "${font}"; + # TIME + label = [ + { + monitor = ""; + text = "$TIME"; # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution + font_size = 90; + font_family = "${font}"; - position = "-30, 0"; - halign = "right"; - valign = "top"; - } + position = "-30, 0"; + halign = "right"; + valign = "top"; + } - # DATE - { - monitor = ""; - text = "cmd[update:60000] date +'%A, %d %B %Y'"; # update every 60 seconds - font_size = 25; - font_family = "${font}"; + # DATE + { + monitor = ""; + text = "cmd[update:60000] date +'%A, %d %B %Y'"; # update every 60 seconds + font_size = 25; + font_family = "${font}"; - position = "-30, -150"; - halign = "right"; - valign = "top"; - } - ]; - }; -}; + position = "-30, -150"; + halign = "right"; + valign = "top"; + } + ]; + }; + }; } |
