mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-03 14:54:21 +02:00
rofi-*: properly escape for pango markup
This commit is contained in:
parent
40d8aece8d
commit
ac9beaa242
2 changed files with 5 additions and 4 deletions
|
@ -41,8 +41,8 @@ EOF
|
|||
status=$(playerctl -p $mediaplayer status)
|
||||
case $status in
|
||||
Playing|Paused)
|
||||
title="$(playerctl -p $mediaplayer metadata xesam:title)"
|
||||
artist="$(playerctl -p $mediaplayer metadata xesam:artist)"
|
||||
title="$(playerctl -p $mediaplayer metadata xesam:title | sed -e 's/&/\&/g' -e 's/</\</g')"
|
||||
artist="$(playerctl -p $mediaplayer metadata xesam:artist | sed -e 's/&/\&/g' -e 's/</\</g')"
|
||||
status="$status <span weight='light'><i>${title} (${artist})</i></span>"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue