Display Currency Rate in i3Status using PHP


The following php script can be configured in i3 to display a number of currency values using google currency convertor. 

Configure i3status

First you will have to modify your .i3status.conf file and add the following line:

output_format = "i3bar"

Configure i3

status_command i3status -c /home/amado/.config/i3/.i3status.conf | php -f ~/bin/i3statusphp

Download i3 status php script

Save this script as ~/bin/i3statusphp.

Reload i3 configuration

I use Super+Shift+R on my desktop.

Try it out!

Feel free to modify the script and add extra functionality, change text color, etc. Let me know if you found this script useful. Thanks for reading!