diff options
| author | eug-vs <eug-vs@keemail.me> | 2021-03-01 01:25:38 +0300 | 
|---|---|---|
| committer | eug-vs <eug-vs@keemail.me> | 2021-03-01 01:25:38 +0300 | 
| commit | c4f1c4b906b797bb7c7497de503f8066587b6c21 (patch) | |
| tree | b51e983ab21886c64417425604436bb1ce114241 | |
| parent | a2d7d910d6bfa5a9618d09e9f9cac8cead4277ae (diff) | |
| download | dotfiles-c4f1c4b906b797bb7c7497de503f8066587b6c21.tar.gz | |
feat(i3): add current spotify track to i3blocks
| -rw-r--r-- | .config/i3blocks/i3blocks.conf | 9 | 
1 files changed, 7 insertions, 2 deletions
| 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 | 
