🔧 chore(hypr/hyprlock): use colorshell's active player data

This commit is contained in:
retrozinndev
2025-11-06 16:48:22 -03:00
parent dee4ebc9bf
commit 323d45e51b
+3 -2
View File
@@ -8,10 +8,11 @@ source = ~/.cache/wal/colors-hyprland.conf
# Wiki: https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
# Fonts
# Variables
$font = Cantarell Regular
$clockFont = Cantarell Black
$minimalFont = Noto Sans Mono
$getActivePlayer = colorshell media bus-name | sed -e 's/^org.mpris.MediaPlayer2.//'
general {
disable_loading_bar = true
@@ -90,7 +91,7 @@ label {
font_size = 12
font_family = Cantarell
color = $foreground
text = cmd[update:1000] bash -c 'playerctl metadata && echo -e "󰎇 $(playerctl metadata title) - $(playerctl metadata artist)"' | tail -n 1
text = cmd[update:1000] bash -c 'playerctl metadata && echo -e "󰎇 $(playerctl --player `$getActivePlayer` metadata title) - $(playerctl --player `$getActivePlayer` metadata artist)"' | tail -n 1
shadow_passes = 1
shadow_size = 2
shadow_color = $background