✨ feat(hypr): add current song to hyprlock
This commit is contained in:
parent
244f656888
commit
dc386b4263
2 changed files with 10 additions and 4 deletions
|
@ -20,6 +20,7 @@ background {
|
||||||
vibrancy_darkness = 0.0
|
vibrancy_darkness = 0.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Password Field
|
||||||
input-field {
|
input-field {
|
||||||
monitor = DP-1
|
monitor = DP-1
|
||||||
rounding = 20
|
rounding = 20
|
||||||
|
@ -43,7 +44,7 @@ input-field {
|
||||||
valign = bottom
|
valign = bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
# Current time
|
# Current Time
|
||||||
label {
|
label {
|
||||||
monitor = DP-1
|
monitor = DP-1
|
||||||
shadow_passes = 1
|
shadow_passes = 1
|
||||||
|
@ -56,15 +57,15 @@ label {
|
||||||
valign = center
|
valign = center
|
||||||
}
|
}
|
||||||
|
|
||||||
# User label
|
# Current Song
|
||||||
label {
|
label {
|
||||||
monitor = DP-1
|
monitor = DP-1
|
||||||
text = Type to unlock
|
text = cmd[update:1000] echo "$(~/.config/hypr/scripts/current_song)"
|
||||||
shadow_passes = 1
|
shadow_passes = 1
|
||||||
color = $subtext0
|
color = $subtext0
|
||||||
font_size = 17
|
font_size = 17
|
||||||
font_family = $font
|
font_family = $font
|
||||||
position = 0, -102
|
position = 0, -107
|
||||||
halign = center
|
halign = center
|
||||||
valign = center
|
valign = center
|
||||||
}
|
}
|
||||||
|
|
5
.config/hypr/scripts/current_song
Executable file
5
.config/hypr/scripts/current_song
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
song_info=$(playerctl metadata --format ' {{artist}} - {{title}} ')
|
||||||
|
|
||||||
|
echo "$song_info"
|
Loading…
Add table
Reference in a new issue