diff --git a/home/hypr/hyprlock.conf b/home/hypr/hyprlock.conf new file mode 100644 index 00000000..292c4a97 --- /dev/null +++ b/home/hypr/hyprlock.conf @@ -0,0 +1,80 @@ +# BACKGROUND +background { + monitor = + #path = screenshot + path = $HOME/Pictures/109066252_p0.jpg + #color = $background + blur_passes = 2 + contrast = 1 + brightness = 0.5 + vibrancy = 0.2 + vibrancy_darkness = 0.2 +} + +# GENERAL +general { + no_fade_in = true + no_fade_out = true + hide_cursor = false + grace = 0 + disable_loading_bar = true +} + +# INPUT FIELD +input-field { + monitor = + size = 250, 60 + outline_thickness = 2 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(0, 0, 0, 0.2) + font_color = rgba(255, 255, 255, 0.3) + fade_on_empty = false + rounding = -1 + check_color = rgb(204, 136, 34) + placeholder_text = Password + hide_input = false + position = 0, -200 + halign = center + valign = center +} + +# DATE +label { + monitor = + text = cmd[update:1000] echo "$(date +"%A, %B %d")" + color = rgba(242, 243, 244, 0.75) + font_size = 22 + font_family = JetBrains Mono + position = 0, 300 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = cmd[update:1000] echo "$(date +"%-I:%M")" + color = rgba(242, 243, 244, 0.75) + font_size = 95 + font_family = SF Pro Text + position = 0, 200 + halign = center + valign = center +} + + + +# Profile Picture +image { + monitor = + path = $HOME/Pictures/photo_2023-08-01_01-12-50.jpg + size = 100 + border_size = 2 + border_color = $foreground + position = 0, -100 + halign = center + valign = center +} diff --git a/hosts/graphBase.nix b/hosts/graphBase.nix index c9497f16..e3c64e74 100644 --- a/hosts/graphBase.nix +++ b/hosts/graphBase.nix @@ -179,13 +179,13 @@ timeouts = [ { timeout = 900; - command = "${pkgs.swaylock}/bin/swaylock"; + command = "${pkgs.hyprlock}/bin/hyprlock"; } ]; events = [ { event = "lock"; - command = "${pkgs.swaylock}/bin/swaylock"; + command = "${pkgs.hyprlock}/bin/hyprlock"; } { event = "before-sleep"; diff --git a/hosts/niri.nix b/hosts/niri.nix index 80bee0d6..5027e60a 100644 --- a/hosts/niri.nix +++ b/hosts/niri.nix @@ -10,6 +10,7 @@ package = pkgs.niri; enable = true; }; + programs.hyprlock.enable = true; services.greetd = { enable = true; settings = rec { diff --git a/userPkgs.nix b/userPkgs.nix index c7876217..5babebe0 100644 --- a/userPkgs.nix +++ b/userPkgs.nix @@ -1,6 +1,7 @@ { pkgs, ... }: with pkgs; [ + turbo eva paperback amberol