aboutsummaryrefslogtreecommitdiff
path: root/.config/i3blocks/i3blocks.conf
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-01 01:25:38 +0300
committereug-vs <eug-vs@keemail.me>2021-03-01 01:25:38 +0300
commitc4f1c4b906b797bb7c7497de503f8066587b6c21 (patch)
treeb51e983ab21886c64417425604436bb1ce114241 /.config/i3blocks/i3blocks.conf
parenta2d7d910d6bfa5a9618d09e9f9cac8cead4277ae (diff)
downloaddotfiles-c4f1c4b906b797bb7c7497de503f8066587b6c21.tar.gz
feat(i3): add current spotify track to i3blocks
Diffstat (limited to '.config/i3blocks/i3blocks.conf')
-rw-r--r--.config/i3blocks/i3blocks.conf9
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