From ac2223ad241c39ef4b35528c0f5de1836e963bf9 Mon Sep 17 00:00:00 2001
From: Hadi <112569860+anotherhadi@users.noreply.github.com>
Date: Mon, 19 Aug 2024 22:50:30 +0200
Subject: [PATCH] Update
---
home/system/hyprland/default.nix | 2 +-
home/system/hyprland/hyprlock/macos.nix | 100 ++++++++++++++++++
.../{hyprlock.nix => hyprlock/old.nix} | 0
.../{hyprlocktty.nix => hyprlock/tty.nix} | 0
4 files changed, 101 insertions(+), 1 deletion(-)
create mode 100644 home/system/hyprland/hyprlock/macos.nix
rename home/system/hyprland/{hyprlock.nix => hyprlock/old.nix} (100%)
rename home/system/hyprland/{hyprlocktty.nix => hyprlock/tty.nix} (100%)
diff --git a/home/system/hyprland/default.nix b/home/system/hyprland/default.nix
index d170b67..7b34139 100644
--- a/home/system/hyprland/default.nix
+++ b/home/system/hyprland/default.nix
@@ -1,7 +1,7 @@
{ pkgs, config, inputs, ... }: {
imports =
- [ ./hyprlocktty.nix ./hypridle.nix ./hyprpaper.nix ./hyprcursor.nix ];
+ [ ./hyprlock/macos.nix ./hypridle.nix ./hyprpaper.nix ./hyprcursor.nix ];
home.packages = with pkgs; [
hyprshot
diff --git a/home/system/hyprland/hyprlock/macos.nix b/home/system/hyprland/hyprlock/macos.nix
new file mode 100644
index 0000000..97d544f
--- /dev/null
+++ b/home/system/hyprland/hyprlock/macos.nix
@@ -0,0 +1,100 @@
+{ config, ... }: {
+
+ programs.hyprlock = {
+ enable = true;
+ settings = {
+ general = {
+ grace = 5;
+ no_fade_in = false;
+ disable_loading_bar = false;
+ };
+
+ # BACKGROUND
+ background = {
+ monitor = "";
+ path = "~/wallpapers/${config.var.theme.wallpaper}";
+ blur_passes = 0;
+ contrast = 0.8916;
+ brightness = 0.8172;
+ vibrancy = 0.1696;
+ vibrancy_darkness = 0.0;
+ };
+
+ label = [
+ {
+ # Day-Month-Date
+ monitor = "";
+ text = ''cmd[update:1000] echo -e "$(date +"%A, %B %d")"'';
+ color = "rgba(216, 222, 233, .7)";
+ font_size = 28;
+ font_family = "SFProDisplay Nerd Font Bold";
+ position = "0, 490";
+ halign = "center";
+ valign = "center";
+ }
+ # Time
+ {
+ monitor = "";
+ text = ''cmd[update:1000] echo "$(date +"%I:%M")"'';
+ color = "rgba(216, 222, 233, .7)";
+ font_size = 160;
+ font_family = "steelfish outline regular";
+ position = "0, 370";
+ halign = "center";
+ valign = "center";
+ }
+ # USER
+ {
+ monitor = "";
+ text = " $USER";
+ color = "rgba(216, 222, 233, 0.80)";
+ outline_thickness = 2;
+ dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
+ dots_spacing = 0.2; # Scale of dots' absolute size, 0.0 - 1.0
+ dots_center = true;
+ font_size = 18;
+ font_family = "SFProDisplay Nerd Font Bold";
+ position = "0, -180";
+ halign = "center";
+ valign = "center";
+ }
+ ];
+
+ # Foreground
+ # image = [{
+ # monitor = "";
+ # path = "~/.config/hypr/foreground.png";
+ # size = 700;
+ # border_size = 0;
+ # rounding = 0;
+ # rotate = 0;
+ # reload_time = 0;
+ # reload_cmd = "";
+ # position = "0, -66";
+ # halign = "center";
+ # valign = "center";
+ # }];
+
+ # INPUT FIELD
+ input-field = [{
+ monitor = "";
+ size = "300, 60";
+ outline_thickness = 2;
+ dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
+ dots_spacing = 0.2; # Scale of dots' absolute size, 0.0 - 1.0
+ dots_center = true;
+ outer_color = "rgba(255, 255, 255, 0)";
+ inner_color = "rgba(255, 255, 255, 0.1)";
+ font_color = "rgb(200, 200, 200)";
+ fade_on_empty = false;
+ font_family = "SFProDisplay Nerd Font Bold";
+ placeholder_text =
+ ''🔒 Enter Pass'';
+ hide_input = false;
+ position = "0, -250";
+ halign = "center";
+ valign = "center";
+ }];
+ };
+ };
+}
diff --git a/home/system/hyprland/hyprlock.nix b/home/system/hyprland/hyprlock/old.nix
similarity index 100%
rename from home/system/hyprland/hyprlock.nix
rename to home/system/hyprland/hyprlock/old.nix
diff --git a/home/system/hyprland/hyprlocktty.nix b/home/system/hyprland/hyprlock/tty.nix
similarity index 100%
rename from home/system/hyprland/hyprlocktty.nix
rename to home/system/hyprland/hyprlock/tty.nix