style(waybar): use shellcheck action

This commit is contained in:
Price Hiller 2022-08-08 19:57:05 -05:00
parent b5d9a5494a
commit 0b0543bf9d

View File

@ -5,7 +5,8 @@ main() {
local text=""
class="$(playerctl metadata --format '{{lc(status)}}')"
local player_ctl_info="$(playerctl metadata --format '{{ artist }} | {{ title }} | {{ album }}')"
local player_ctl_info
player_ctl_info="$(playerctl metadata --format '{{ artist }} | {{ title }} | {{ album }}')"
if [[ "${class}" == "playing" ]]; then
text="${player_ctl_info}"