From 1e9a88a616fd11df669739aa38972de8b746282a Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 5 Aug 2024 10:04:10 +0200 Subject: [PATCH] hyprlock --- .config/hypr/hyprlock.conf | 72 ++++++++++++++++++------------ .config/hypr/scripts/songdetail.sh | 5 +++ 2 files changed, 49 insertions(+), 28 deletions(-) create mode 100755 .config/hypr/scripts/songdetail.sh diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf index c2869aa..ec5b321 100644 --- a/.config/hypr/hyprlock.conf +++ b/.config/hypr/hyprlock.conf @@ -6,52 +6,59 @@ $font = JetBrainsMono Nerd Font # GENERAL general { - disable_loading_bar = true hide_cursor = true + no_fade_in = false + grace = 0 } # BACKGROUND background { monitor = path = ~/.config/hypr/assets/images/background.png - color: $base - blur_passes = 0 - color = $base + blur_passes = 2 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 } # TIME label { monitor = - text = cmd[update:30000] echo "$(date +"%R")" + text = cmd[update:1000] echo "$(date +"%H:%M")" color = $text - font_size = 90 + font_size = 130 + #font_family = SF Pro Display Bold font_family = $font - position = -30, 0 - halign = right - valign = top + position = 0, 240 + halign = center + valign = center } # DATE label { - monitor = - text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")" + monitor = + text = cmd[update:1000] echo -e "$(date +"%A, %d %B")" color = $text - font_size = 25 + font_size = 30 font_family = $font - position = -30, -150 - halign = right - valign = top + position = 0, 105 + halign = center + valign = center } # USER AVATAR - image { - monitor = + monitor = path = ~/.config/hypr/assets/images/face.png - size = 100 border_color = $accent - - position = 0, 75 + border_size = 0 + size = 120 + rounding = -1 + rotate = 0 + reload_time = -1 + reload_cmd = + position = 0, -20 halign = center valign = center } @@ -59,10 +66,10 @@ image { # INPUT FIELD input-field { monitor = - size = 300, 60 - outline_thickness = 4 - dots_size = 0.2 - dots_spacing = 0.2 + size = 250, 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 = $accent inner_color = $surface0 @@ -70,11 +77,20 @@ input-field { fade_on_empty = false placeholder_text = 󰌾 Logged in as $USER hide_input = false - check_color = $accent - fail_color = $red - fail_text = $FAIL ($ATTEMPTS) capslock_color = $yellow - position = 0, -35 + position = 0, -225 halign = center valign = center } + +# CURRENT SONG +label { + monitor = + text = cmd[update:1000] echo "$(~/.config/hypr/scripts/songdetail.sh)" + color = $green + font_size = 18 + font_family = font + position = 0, 60 + halign = center + valign = bottom +} diff --git a/.config/hypr/scripts/songdetail.sh b/.config/hypr/scripts/songdetail.sh new file mode 100755 index 0000000..51745e6 --- /dev/null +++ b/.config/hypr/scripts/songdetail.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +song_info=$(playerctl metadata --format '{{title}}  {{artist}}') + +echo "$song_info"