Polybar: fix error on missing player

This commit is contained in:
Filippo Berto 2023-05-02 11:13:56 +02:00
parent f20886eea2
commit 3f06605e9c
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -24,7 +24,7 @@ let
for i in {1..10}; do ${dunstctl} history-pop; done
'';
playerStatusSrc = pkgs.writeShellScript "playerStatusSrc" ''
${playerCtl} -f '{{title}} - {{artist}}' metadata
${playerCtl} -f '{{title}} - {{artist}}' metadata || true
'';
playerStatus = pkgs.writeShellScript "playerStatus" ''
${zscroll} -l 20 -M '${playerCtl} status' -n -s 1 \