feat(hypr): add current song to hyprlock

This commit is contained in:
Sergio Laín 2024-10-05 20:14:08 +02:00
parent 244f656888
commit dc386b4263
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
2 changed files with 10 additions and 4 deletions

View file

@ -20,6 +20,7 @@ background {
vibrancy_darkness = 0.0
}
# Password Field
input-field {
monitor = DP-1
rounding = 20
@ -43,7 +44,7 @@ input-field {
valign = bottom
}
# Current time
# Current Time
label {
monitor = DP-1
shadow_passes = 1
@ -56,15 +57,15 @@ label {
valign = center
}
# User label
# Current Song
label {
monitor = DP-1
text = Type to unlock
text = cmd[update:1000] echo "$(~/.config/hypr/scripts/current_song)"
shadow_passes = 1
color = $subtext0
font_size = 17
font_family = $font
position = 0, -102
position = 0, -107
halign = center
valign = center
}

View file

@ -0,0 +1,5 @@
#!/bin/bash
song_info=$(playerctl metadata --format '󰎈 {{artist}} - {{title}} 󰎈')
echo "$song_info"