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