LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.62k stars 194 forks source link

parsing uri's in clickable area #191

Closed cellsheet closed 7 years ago

cellsheet commented 7 years ago

so when I tried to make a clickable area for a url on xdg-open, I got file 'https' does not exist only to find out the command being returned was xdg-open https, truncating the actual url. Lemonbar seems to be parsing the ending : in %A{:command:}. I would modify the string to work, but xdg-open can only work with the http(s) uri preceding the actual link, as my error would then be xdg-open: file 'www.example.com' does not exist.

LemonBoy commented 7 years ago

%{A:echo http\://goog.le:}You have to escape the :%{A}