Browser - use rofi para acessar páginas na web
Publicado por Perfil removido (última atualização em 18/04/2017)
[ Hits: 1.681 ]
Script que cria uma instância do rofi e pede input do usuário.
Se o input começar com https ou http, ou terminar com .io,.com ou .br, ele inicia o browser do usuário (definindo pela variável de ambiente de BROWSER, com default para o teu browser).
Se o input não preencher os requisitos acima ele inicia o browser com o input do usuário como string de busca ( por padrão usa searx.me ).
#!/bin/sh # # Uses rofi to get user input, if the input starts # with https or http, or end with .com,.io or .br # it runs the input directly to the browser # # if the input doesn't meet the above criteria then # it will search the user input on the search engine # defined bellow ( searx.me by default ) # # This requires the BROWSER variable to be set # it defaults to qutebrowser # # Define the URL for searching URL="https://searx.me/?q=" # # Get user input q="$(rofi -dmenu -p "Browse the Web:")" if [ -z "${q+x}" ]; then exit 0 elif echo "$q" | grep --quiet -E '^https|^http|\.com|\.io|\.br|\.net'; then "${BROWSER:=qutebrowser}" "${q}" else "${BROWSER:=qutebrowser}" "${URL}""${q}" fi
Crie playlists personalizadas e execute-as com o mplayer
Autenticando no Velox Empresarial
Nenhum comentário foi encontrado.
Programa IRPF - Guia de Instalação e Resolução de alguns Problemas
Criando uma Infraestrutura para uma micro Empresa
Criar entrada (menuentry) ISO no Grub
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
O Que Fazer Após Instalar Fedora 42
Debian 12 -- Errata - Correções de segurança
Instalando o Pi-Hole versão v5.18.4 depois do lançamento da versão v6.0