From 323d45e51b59601a7565666c0afe53f27c64b9ec Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Thu, 6 Nov 2025 16:48:22 -0300 Subject: [PATCH] :wrench: chore(hypr/hyprlock): use colorshell's active player data --- config/hypr/hyprlock.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 0e9d285..1dec991 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -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