diff options
author | EuAndreh <eu@euandre.org> | 2023-02-20 12:11:51 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-20 12:12:03 -0300 |
commit | c49a432e10da90f4b5e24b0c5acb4019fc32e137 (patch) | |
tree | 7b06af41708cf2932a46948211d8495d63cc0f11 /bin/status-bar | |
parent | bin/wms: Use player(1) over accessing the cache file (diff) | |
download | dotfiles-c49a432e10da90f4b5e24b0c5acb4019fc32e137.tar.gz dotfiles-c49a432e10da90f4b5e24b0c5acb4019fc32e137.tar.xz |
Use "player synopsis" for MPRIS status string
Diffstat (limited to 'bin/status-bar')
-rwxr-xr-x | bin/status-bar | 3 |
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`; |