aboutsummaryrefslogtreecommitdiff
path: root/bin/status-bar
diff options
context:
space:
mode:
Diffstat (limited to 'bin/status-bar')
-rwxr-xr-xbin/status-bar3
1 files changed, 2 insertions, 1 deletions
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) = (<STDIN> =~ /^,?(.*)/)) {
# 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`;