From c79e1970a93367cbd27b2af0ac1cad6429913821 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Fri, 30 Aug 2024 14:33:42 +0700 Subject: [PATCH] changed hyprlock.conf and added songdetail.sh and hyprlock-background.sh scripts --- hypr/bin/hyprlock-background.sh | 4 ++ hypr/bin/songdetail.sh | 5 ++ hypr/hyprlock.conf | 93 +++++++++++++++++++++------------ 3 files changed, 69 insertions(+), 33 deletions(-) create mode 100755 hypr/bin/hyprlock-background.sh create mode 100755 hypr/bin/songdetail.sh diff --git a/hypr/bin/hyprlock-background.sh b/hypr/bin/hyprlock-background.sh new file mode 100755 index 0000000..c5c0edb --- /dev/null +++ b/hypr/bin/hyprlock-background.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +ls ~/Pictures/wallpaper/*.png | shuf -n 1 + diff --git a/hypr/bin/songdetail.sh b/hypr/bin/songdetail.sh new file mode 100755 index 0000000..51745e6 --- /dev/null +++ b/hypr/bin/songdetail.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +song_info=$(playerctl metadata --format '{{title}}  {{artist}}') + +echo "$song_info" diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 2b786c9..3892ba1 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -16,44 +16,71 @@ background { vibrancy_darkness = 0.0 } -input-field { +label { monitor = - size = 200, 50 - outline_thickness = 1 + text = cmd[update:1000] echo "$(date +"%A %d %B %Y")" + color = rgba(200, 200, 200, 1.0) + font_size = 25 + font_family = SF Pro Display Bold + position = 0, 350 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$(date +"%I:%M")" + color = rgba(200, 200, 200, 1.0) + font_size = 120 + font_family = SF Pro Display Bold + position = 0, 250 + halign = center + valign = center +} + +label { + 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.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_spacing = 0.2 # Scale of dots absolute size, 0.0 - 1.0 dots_center = true - outer_color = rgb(000000) - inner_color = rgb(200, 200, 200) - fade_on_empty = false - font_color = rgb(000000) - color = rgb(000000) - placeholder_text = Input Password... # Text rendered in the input box when it's empty. - hide_input = false - position = 0, -50 - halign = center - valign = center -} - -label { - monitor = - text = cmd[update:1000] echo "$(date +"%X")" - color = rgba(200, 200, 200, 1.0) - font_size = 60 - font_family = Noto Sans - position = 0, 150 - halign = center - valign = center -} - -label { - monitor = - text = cmd[update:1000] echo "$(date +"%A %d %B %Y")" - color = rgba(200, 200, 200, 1.0) font_size = 18 - font_family = Noto Sans - position = 0, 100 + font_family = SF Pro Display Bold + position = 0, -130 halign = center valign = center } + +input-field { + monitor = + size = 300, 60 + outline_thickness = 2 + dots_size = 0.2 + dots_spacing = 0.2 + dots_center = true + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(255, 255, 255, 0.1) + font_color = rgb(200, 200, 200) + fade_on_empty = false + font_family = SF Pro Display Bold + placeholder_text = Enter Pass + hide_input = false + position = 0, -210 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/songdetail.sh)" + color = rgba(255, 255, 255, 0.6) + font_size = 18 + font_family = JetBrains Mono Nerd, SF Pro Display Bold + position = 0, 50 + halign = center + valign = bottom +} + # ------------------------------------------------------