From c4f1c4b906b797bb7c7497de503f8066587b6c21 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 1 Mar 2021 01:25:38 +0300 Subject: feat(i3): add current spotify track to i3blocks --- .config/i3blocks/i3blocks.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.config/i3blocks/i3blocks.conf') diff --git a/.config/i3blocks/i3blocks.conf b/.config/i3blocks/i3blocks.conf index d87c4b2..68fd0a8 100644 --- a/.config/i3blocks/i3blocks.conf +++ b/.config/i3blocks/i3blocks.conf @@ -2,6 +2,11 @@ markup=pango separator=false separator_block_width=25 +[spotify] +command=playerctl metadata --format ' {{ artist }} - {{ title }}' --follow 2> /dev/null +min_width=550 +interval=persist + [lang] command=bash -c 'xkb-switch; xkb-switch -W' interval=persist @@ -23,10 +28,10 @@ command=~/.local/share/i3blocks-modules/battery -f ' {percent}%' interval=1 [date] -command=~/.local/share/i3blocks-modules/date -f " {time}" -t "%a, %d.%m.%Y" +command=~/.local/share/i3blocks-modules/date -f " {time}" -t "%a, %d.%m.%Y" interval=60 [time] -command=~/.local/share/i3blocks-modules/date -f " {time}" -t "%H:%M:%S" +command=~/.local/share/i3blocks-modules/date -f " {time}" -t "%H:%M:%S" interval=1 -- cgit v1.2.3