🔧 chore(hypr/hyprlock): use colorshell's active player data
This commit is contained in:
@@ -8,10 +8,11 @@ source = ~/.cache/wal/colors-hyprland.conf
|
|||||||
# Wiki: https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
# Wiki: https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
||||||
|
|
||||||
|
|
||||||
# Fonts
|
# Variables
|
||||||
$font = Cantarell Regular
|
$font = Cantarell Regular
|
||||||
$clockFont = Cantarell Black
|
$clockFont = Cantarell Black
|
||||||
$minimalFont = Noto Sans Mono
|
$minimalFont = Noto Sans Mono
|
||||||
|
$getActivePlayer = colorshell media bus-name | sed -e 's/^org.mpris.MediaPlayer2.//'
|
||||||
|
|
||||||
general {
|
general {
|
||||||
disable_loading_bar = true
|
disable_loading_bar = true
|
||||||
@@ -90,7 +91,7 @@ label {
|
|||||||
font_size = 12
|
font_size = 12
|
||||||
font_family = Cantarell
|
font_family = Cantarell
|
||||||
color = $foreground
|
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_passes = 1
|
||||||
shadow_size = 2
|
shadow_size = 2
|
||||||
shadow_color = $background
|
shadow_color = $background
|
||||||
|
|||||||
Reference in New Issue
Block a user