Launchers - GNU/Linux

Users browsing this thread: 1 Guest(s)
VMS
Members
I've recently discovered this rofr.sh script, which makes rofi's cli much more flexible and easier to use imho.

As for searching web, I use this `ssurf' script to launch a surf session with 'sane' defaults:

Code:
#!/bin/sh
ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 \
(KHTML, like Gecko) Version/15.0 Safari/605.1.15"
cookies=$(mktemp)
surf -d -g -s -T -u "$ua" -a 'a@A' -c "$cookies" $*
rm -f "$cookies"

And I created this script to quickly look up things on different search browsers:

Code:
#!/bin/sh

#browser=lynx
browser=ssurf

cmd=$1

if [ -z "$cmd"]; then
  url="https://ma.sdf.org"
  exec $browser "$url"

else

  shift
  case $cmd in
    w)
        url="https://whoogle.sdf.org/search?q=$*"
        ;;
    s)
        url="https://anon.sx/search?q=$*"
        ;;
    d)
        url="https://html.duckduckgo.com/html?q=$*"
        ;;
    g)
        url="https://www.google.com/search?q=$*"
        ;;
    tr)
        url="https://context.reverso.net/translation/italian-english/$*"
        ;;
    wp)
        url="https://en.wikipedia.org/wiki/Special:Search?search=$*"
        ;;
    pkg)
        url="http://pkgsrc.se/search.php?so=$*#main"
        ;;
    c)
        url=$(xclip -o)
        ;;
    *)
        url="$cmd"
        ;;
  esac
fi

url=$(printf "$url" | sed 's/ /%20/g')
exec $browser "$url"


Messages In This Thread
Launchers - by greduan - 22-03-2017, 11:59 AM
RE: Launchers - by mrtn - 22-03-2017, 12:17 PM
RE: Launchers - by jkl - 22-03-2017, 12:23 PM
RE: Launchers - by evbo - 22-03-2017, 12:26 PM
RE: Launchers - by z3bra - 22-03-2017, 02:45 PM
RE: Launchers - by evbo - 22-03-2017, 05:01 PM
RE: Launchers - by r4ndom - 24-03-2017, 03:40 PM
RE: Launchers - by neeasade - 24-03-2017, 03:56 PM
RE: Launchers - by robotchaos - 29-03-2017, 05:36 PM
RE: Launchers - by Tmplt - 02-04-2017, 12:27 PM
RE: Launchers - by xero - 03-04-2017, 01:51 PM
RE: Launchers - by greduan - 04-04-2017, 06:46 AM
RE: Launchers - by Mrat - 11-05-2017, 11:45 PM
RE: Launchers - by Foggalong - 08-01-2018, 10:40 PM
RE: Launchers - by pkal - 10-01-2018, 06:02 AM
RE: Launchers - by venam - 19-07-2021, 10:00 AM
RE: Launchers - by seninha - 19-07-2021, 10:07 AM
RE: Launchers - by jkl - 19-07-2021, 10:38 AM
RE: Launchers - by z3bra - 20-07-2021, 03:03 AM
RE: Launchers - by twlvscnds - 19-08-2021, 08:00 AM
RE: Launchers - by Ssynicil - 30-09-2021, 04:49 AM
RE: Launchers - by seninha - 29-12-2021, 10:59 PM
RE: Launchers - by pfr - 09-02-2022, 02:45 AM
RE: Launchers - by neeasade - 10-02-2022, 10:01 PM
RE: Launchers - by VMS - 28-02-2022, 03:51 PM
RE: Launchers - by yakumo.izuru - 17-04-2022, 10:53 PM
RE: Launchers - by seninha - 20-04-2022, 08:57 AM
RE: Launchers - by maksim - 02-09-2022, 03:44 PM
RE: Launchers - by seninha - 23-09-2022, 09:33 AM