Tested on Arch and Ubuntu. Doesn't work on OS X.