waybar: fix some warnings

This commit is contained in:
Leonardo Eugênio 2023-09-12 00:43:56 -03:00
parent 90fa9564dc
commit 6b49c83fff
2 changed files with 5 additions and 9 deletions

View file

@ -2,13 +2,9 @@
PLAYERCTL="playerctl --ignore-player=mpd"
STATUS="$(env LC_ALL=C $PLAYERCTL status title)"
TITLE="$($PLAYERCTL metadata title)"
ARTIST="$($PLAYERCTL metadata artist)"
test "$STATUS" = "Playing" \
&& printf " %s" "$TITLE" \
&& test -n "$ARTIST" \
&& printf " - %s" "$ARTIST"
test "$(LC_ALL=C $PLAYERCTL status)" = "Playing" \
&& printf " %s" "$($PLAYERCTL metadata title)" \
&& test -n "$($PLAYERCTL metadata artist)" \
&& printf " - %s" "$($PLAYERCTL metadata artist)"
echo ""

View file

@ -134,7 +134,7 @@ in
"custom/vpn" = lib.mkIf (osConfig.services.vpn.enable or false) {
format = "{}";
exec = ''
mullvad status | grep "^Connected" > /dev/null \
${pkgs.mullvad}/bin/mullvad status | ${pkgs.gnugrep}/bin/grep "^Connected" > /dev/null \
&& echo "" \
|| echo ""
'';