From c49a432e10da90f4b5e24b0c5acb4019fc32e137 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 20 Feb 2023 12:11:51 -0300 Subject: Use "player synopsis" for MPRIS status string --- bin/status-bar | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/status-bar') diff --git a/bin/status-bar b/bin/status-bar index d560051..73632f6 100755 --- a/bin/status-bar +++ b/bin/status-bar @@ -11,6 +11,7 @@ use feature 'signatures'; no warnings ('experimental::signatures'); use Getopt::Std (); use JSON (); +use open IN => ':encoding(UTF-8)'; sub usage($fh) { print $fh <<~'EOF' @@ -85,7 +86,7 @@ while (my ($statusline) = ( =~ /^,?(.*)/)) { # Prefix our own information (you coud also suffix or insert in the # middle). - my $mpris = `player current`; + my $mpris = `player synopsis`; chomp $mpris; my $vms = `vm status | awk '\$2=="up"' | wc -l`; -- cgit v1.2.3