diff --git a/.gitignore b/.gitignore index 2816715..7819e00 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,6 @@ gqrx/ gtk-*.0/ htop/ inkscape/ -hypr/ lazygit/ libreoffice/ libvirt/ diff --git a/home-manager/modules/packages.nix b/home-manager/modules/packages.nix index 1ac0901..3fc23b2 100644 --- a/home-manager/modules/packages.nix +++ b/home-manager/modules/packages.nix @@ -11,6 +11,7 @@ in { swayidle swww kanshi + hyprlock # System utilities & monitoring btop diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..b4e8cf5 --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,73 @@ +$font = Monospace + +general { + hide_cursor = false +} + +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 = 4 +} + +source = $HOME/.cache/wal/colors-hyprland.conf + +input-field { + monitor = + size = 20%, 5% + outline_thickness = 3 + inner_color = rgba(0, 0, 0, 0.0) # no fill + + outer_color = $color1 $color2 45deg + check_color = $color3 $color4 120deg + fail_color = $color5 $color6 40deg + + font_color = $color15 + fade_on_empty = false + rounding = 32 + + font_family = $font + placeholder_text = unlock me :3 + fail_text = wrong you fucking idiot >:3 + + dots_text_format = ❤ + dots_size = 0.5 + dots_spacing = 0.3 + + position = 0, -20 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = $TIME + font_size = 90 + font_family = $font + + position = 0, 165 + halign = center + valign = center +} + +# DATE +label { + monitor = + text = cmd[update:60000] date +"%A, %d %B %Y" + font_size = 25 + font_family = $font + + position = 0, 75 + halign = center + valign = center +} + diff --git a/niri/config.kdl b/niri/config.kdl index b975ef1..55757ba 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -164,7 +164,7 @@ binds { } // Utility shortcuts Mod+L { - spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock" + spawn "hyprlock" } // Mod-Shift-/, which is usually the same as Mod-?, // shows a list of important hotkeys.