style(waybar): use shellcheck action
This commit is contained in:
parent
b5d9a5494a
commit
0b0543bf9d
@ -5,7 +5,8 @@ main() {
|
|||||||
local text=""
|
local text=""
|
||||||
class="$(playerctl metadata --format '{{lc(status)}}')"
|
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
|
if [[ "${class}" == "playing" ]]; then
|
||||||
text=" ${player_ctl_info}"
|
text=" ${player_ctl_info}"
|
||||||
|
Loading…
Reference in New Issue
Block a user