aboutsummaryrefslogtreecommitdiff
path: root/bin/status-bar
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-20 12:11:51 -0300
committerEuAndreh <eu@euandre.org>2023-02-20 12:12:03 -0300
commitc49a432e10da90f4b5e24b0c5acb4019fc32e137 (patch)
tree7b06af41708cf2932a46948211d8495d63cc0f11 /bin/status-bar
parentbin/wms: Use player(1) over accessing the cache file (diff)
downloaddotfiles-c49a432e10da90f4b5e24b0c5acb4019fc32e137.tar.gz
dotfiles-c49a432e10da90f4b5e24b0c5acb4019fc32e137.tar.xz
Use "player synopsis" for MPRIS status string
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`;