This commit is contained in:
Thomas
2024-08-05 10:04:10 +02:00
parent 547bf8ae5a
commit 1e9a88a616
2 changed files with 49 additions and 28 deletions
+42 -26
View File
@@ -6,52 +6,59 @@ $font = JetBrainsMono Nerd Font
# GENERAL # GENERAL
general { general {
disable_loading_bar = true
hide_cursor = true hide_cursor = true
no_fade_in = false
grace = 0
} }
# BACKGROUND # BACKGROUND
background { background {
monitor = monitor =
path = ~/.config/hypr/assets/images/background.png path = ~/.config/hypr/assets/images/background.png
color: $base blur_passes = 2
blur_passes = 0 contrast = 0.8916
color = $base brightness = 0.8172
vibrancy = 0.1696
vibrancy_darkness = 0.0
} }
# TIME # TIME
label { label {
monitor = monitor =
text = cmd[update:30000] echo "$(date +"%R")" text = cmd[update:1000] echo "<span>$(date +"%H:%M")</span>"
color = $text color = $text
font_size = 90 font_size = 130
#font_family = SF Pro Display Bold
font_family = $font font_family = $font
position = -30, 0 position = 0, 240
halign = right halign = center
valign = top valign = center
} }
# DATE # DATE
label { label {
monitor = monitor =
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")" text = cmd[update:1000] echo -e "$(date +"%A, %d %B")"
color = $text color = $text
font_size = 25 font_size = 30
font_family = $font font_family = $font
position = -30, -150 position = 0, 105
halign = right halign = center
valign = top valign = center
} }
# USER AVATAR # USER AVATAR
image { image {
monitor = monitor =
path = ~/.config/hypr/assets/images/face.png path = ~/.config/hypr/assets/images/face.png
size = 100
border_color = $accent border_color = $accent
border_size = 0
position = 0, 75 size = 120
rounding = -1
rotate = 0
reload_time = -1
reload_cmd =
position = 0, -20
halign = center halign = center
valign = center valign = center
} }
@@ -59,10 +66,10 @@ image {
# INPUT FIELD # INPUT FIELD
input-field { input-field {
monitor = monitor =
size = 300, 60 size = 250, 60
outline_thickness = 4 outline_thickness = 2
dots_size = 0.2 dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.2 dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true dots_center = true
outer_color = $accent outer_color = $accent
inner_color = $surface0 inner_color = $surface0
@@ -70,11 +77,20 @@ input-field {
fade_on_empty = false fade_on_empty = false
placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span> placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
hide_input = false hide_input = false
check_color = $accent
fail_color = $red
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
capslock_color = $yellow capslock_color = $yellow
position = 0, -35 position = 0, -225
halign = center halign = center
valign = 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
}
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
song_info=$(playerctl metadata --format '{{title}}  {{artist}}')
echo "$song_info"