From d91099eae537ae7903f18729afd8f025513c82e8 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Fri, 10 Oct 2025 22:52:05 -0400 Subject: [PATCH] Final hyprland update and add hyprlock --- config/hypr/hyprland.conf | 10 +++- config/hypr/hyprlock.conf | 106 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 config/hypr/hyprlock.conf diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 72ed7e1..2af09c4 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -34,6 +34,8 @@ $menu = rofi -show drun windowrule = workspace 1, class:Element windowrule = workspace 2, class:anytype windowrule = workspace 3, class:thunderbird +windowrule = workspace 4, class:com.mitchellh.ghostty +windowrule = workspace 5, class:zen ################# @@ -46,6 +48,12 @@ windowrule = workspace 3, class:thunderbird exec-once = waybar exec-once = hyprpaper exec = /home/aselimov/bin/monitor_daemon.sh +exec-once = element-desktop +exec-once = /opt/Anytype/anytype +exec-once = thunderbird +exec-once = ghostty +exec-once = zen-browser + # exec-once = nm-applet & # exec-once = waybar & hyprpaper & firefox @@ -208,7 +216,7 @@ $mainMod = ALT # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod SHIFT, Return, exec, $terminal bind = $mainMod SHIFT, C, killactive, -bind = $mainMod SHIFT, Q, exit, +bind = $mainMod SHIFT, Q, exec, hyprlock bind = $mainMod, Space, togglefloating, bind = $mainMod, p, exec, $menu diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf new file mode 100644 index 0000000..32942f1 --- /dev/null +++ b/config/hypr/hyprlock.conf @@ -0,0 +1,106 @@ +# 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. or 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 +# + +$font = Monospace + +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 +# } +# } + +animations { + enabled = true + bezier = linear, 1, 1, 0, 0 + animation = fadeIn, 1, 5, linear + animation = fadeOut, 1, 5, linear + animation = inputFieldDots, 1, 2, linear +} + +background { + monitor = + path = screenshot + blur_passes = 3 +} + +input-field { + 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 + + font_color = rgb(143, 143, 143) + fade_on_empty = false + rounding = 15 + + 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 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 +} + +# 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 +} + +# DATE +label { + 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 +} + +label { + monitor = + text = + font_size = 24 + onclick = hyprctl switchxkblayout all next + + position = 250, -20 + halign = center + valign = center +}