Skip to content

Instantly share code, notes, and snippets.

@vivien
Created March 4, 2014 04:32
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivien/9340347 to your computer and use it in GitHub Desktop.
Save vivien/9340347 to your computer and use it in GitHub Desktop.
Custom separator trick for i3blocks
# We use the global settings as a shortcut to define our own separator.
# Based on the default i3blocks config file.
full_text=〉
align=center
color=#666666
separator=false
separator_block_width=7
[volume]
command=/usr/libexec/i3blocks/volume
color=#6D6DFF
signal=10
[separator]
[memory]
command=/usr/libexec/i3blocks/memory
color=#FFFFFF
separator_block_width=13
interval=30
[swap]
command=/usr/libexec/i3blocks/memory swap
color=#FFFFFF
interval=30
[separator]
[disk-home]
command=/usr/libexec/i3blocks/disk $HOME
color=#FFFFFF
interval=30
[separator]
[wireless]
command=/usr/libexec/i3blocks/network wlan0 W
color=#00FF00
interval=10
[separator]
[ethernet]
command=/usr/libexec/i3blocks/network eth0 E
color=#00FF00
interval=10
[separator]
[cpu]
command=/usr/libexec/i3blocks/cpu
color=#FFFFFF
interval=10
[separator]
[battery]
command=/usr/libexec/i3blocks/battery BAT0
color=#FFFFFF
interval=30
[separator]
[time]
command=date '+%Y-%m-%d %H:%M:%S'
color=#6EFF6E
interval=5
@mfaerevaag
Copy link

Thanks, worked like a charm! Good job with i3blocks.
One thing, though. I can't seem to put a separator at the end, separating the last block (the time in your case) with the systray. Any tips on how to do this?

Copy link

ghost commented Jan 15, 2015

If you include a full_text= in each useful block it prevents your separator being used when the block has no ouput.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment