From bc3333a82a6c370280c3d3830bb6f9a38db3fbfa Mon Sep 17 00:00:00 2001 From: funman300 Date: Mon, 25 May 2026 11:12:49 -0700 Subject: [PATCH] hyprlock: add config + swap install.sh away from gtklock Adds hyprlock/hyprlock.conf with Tomorrow Night colors, replaces gtklock with hyprlock in packages.txt, and updates install.sh to symlink hyprlock.conf into ~/.config/hypr/ instead of the old gtklock symlinks. Co-Authored-By: Claude Sonnet 4.6 --- hyprlock/hyprlock.conf | 50 ++++++++++++++++++++++++++++++++++++++++++ install.sh | 6 ++--- packages.txt | 2 +- 3 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 hyprlock/hyprlock.conf diff --git a/hyprlock/hyprlock.conf b/hyprlock/hyprlock.conf new file mode 100644 index 0000000..fc0eeef --- /dev/null +++ b/hyprlock/hyprlock.conf @@ -0,0 +1,50 @@ +general { + grace = 0 + hide_cursor = true +} + +background { + monitor = + path = screenshot + blur_passes = 3 + blur_size = 8 +} + +label { + monitor = + text = cmd[update:1000] date +"%-I:%M %p" + font_size = 96 + color = rgba(c5c8c6ff) + position = 0, 150 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:60000] date +"%A, %B %-d" + font_size = 24 + color = rgba(969896ff) + position = 0, 40 + halign = center + valign = center +} + +input-field { + monitor = + size = 300, 50 + outline_thickness = 2 + dots_size = 0.25 + dots_spacing = 0.4 + inner_color = rgba(282a2eff) + outer_color = rgba(81a2beff) + font_color = rgba(c5c8c6ff) + fail_color = rgba(cc6666ff) + check_color = rgba(b5bd68ff) + placeholder_text = Touch fingerprint or type password + fail_text = $FAIL + fade_on_empty = false + position = 0, -50 + halign = center + valign = center +} diff --git a/install.sh b/install.sh index cd8bf4a..d1c0383 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ echo "==> Installing packages (using $AUR_HELPER)" $AUR_HELPER -S --needed - < packages.txt echo "==> Creating config directories" -mkdir -p ~/.config/{niri,waybar,wofi,mako,alacritty,gtk-3.0,gtk-4.0,gtklock,fish} ~/.config/environment.d ~/.config/xdg-desktop-portal +mkdir -p ~/.config/{niri,waybar,wofi,mako,alacritty,gtk-3.0,gtk-4.0,fish} ~/.config/environment.d ~/.config/xdg-desktop-portal echo "==> Linking configs" @@ -40,8 +40,8 @@ default-timeout=4000 """ open(os.path.expanduser("~/.config/mako/config"), "w").write(config) PYEOF -ln -sf "$(pwd)/gtklock/config.ini" ~/.config/gtklock/config -ln -sf "$(pwd)/gtklock/style.css" ~/.config/gtklock/style.css +mkdir -p ~/.config/hypr +ln -sf "$(pwd)/hyprlock/hyprlock.conf" ~/.config/hypr/hyprlock.conf ln -sf "$(pwd)/fish/config.fish" ~/.config/fish/config.fish ln -sf "$(pwd)/starship/starship.toml" ~/.config/starship.toml ln -sf "$(pwd)/alacritty/alacritty.toml" ~/.config/alacritty/alacritty.toml diff --git a/packages.txt b/packages.txt index 26d73a0..23702b5 100644 --- a/packages.txt +++ b/packages.txt @@ -10,7 +10,7 @@ swappy wl-clipboard brightnessctl pamixer -gtklock +hyprlock swayidle ttf-jetbrains-mono-nerd polkit-gnome