Skip to content

Instantly share code, notes, and snippets.

@594727294
Created August 20, 2015 03:26
Show Gist options
  • Save 594727294/f06626ab9c8ab1522db7 to your computer and use it in GitHub Desktop.
Save 594727294/f06626ab9c8ab1522db7 to your computer and use it in GitHub Desktop.
laptop ~/.i3blocks.conf
# This is a comment
interval=1
separator=false
color=#262626
#[stop]
#command=mpc stop
#full_text=stop
#[play]
#command=mpc play
#full_text=>
#[next]
#command=mpc next
#full_text=>>
#[prev]
#command=mpc prev
#full_text=prev<<
#[disk-home]
#command=~/bin/blocks/disk $HOME
#interval=10
[music]
command=mpc status | perl -ne 'if (/\[playing\]/) {CORE::say (`mpc current|tr -d "\n"`)}'
interval=10
full_text=~
[wireless]
command=[[ $(iwgeti -r) == "" ]] && echo "WifiDown" || iwgetid -r
color=#005558
interval=60
[BATTERY]
command=acpi -b | awk '{ split($5,a,":"); print substr($3,0,2), $4, "" }' | tr -d ','
interval=30
[time]
command=date '+%d/%m %H:%M'
interval=30
markup=pango
[window-title]
command=xtitle
color=#0FA0AF
interval=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment