Skip to content

Instantly share code, notes, and snippets.

@mrowl
Created August 17, 2011 01:49
Show Gist options
  • Save mrowl/1150624 to your computer and use it in GitHub Desktop.
Save mrowl/1150624 to your computer and use it in GitHub Desktop.
Chromium url opener for xmonad
#!/bin/bash
#
#Converts the input url to utf-8 from ISO-8859 (xmonad's prompt format), then
#opens the url with chromium, which seems to require utf-8 urls.
query=`echo ${1} | iconv -f ISO-8859-1 -t UTF-8`
echo "${0} ${query}" >> /tmp/search_log.txt
chromium ${query}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment