A script to ease the task of opening url present on st(suckless terminal) using dmenu.
This will only work with patched version of st with external pipe feature enabled.
- Dmenu
- Notify-send for notification (optional)
- Grabbing links from Newsboat.
- Grabbing links from Reddit terminal viewer(rtv).
Above demo showed some use cases, but this script can be used with any terminal app or to grab links easily present on st without configuring each app individually....
git clone https://github.com/thomas154/st-urlopener.git
cd st-urlopener
chmod +x urlopener extract
- Press the key bindings to execute the script on focused terminal.
Alt+u #Mine is binded to this
You can use my st patched version from here
For script to work make sure you replace
~/scripts/st-urlopener/./urlopener
at line 203 of config.h of suckless terminal.
with
static char *openurl[] = { "/bin/sh", "-c", "sed 's/ssh:\\/\\///g' | pathToTheUrlopenerFile./urlopener", "externalpipe",NULL, NULL };