Browser - use rofi para acessar páginas na web
Publicado por Perfil removido (última atualização em 18/04/2017)
[ Hits: 1.784 ]
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
NetProfiler - Um solução para quem passeia por várias redes.
xpock-dl: baixe vídeos do xpock.com.br
ListPkg [Procura de pacote no Slackware]
Instalação do Java Runtime Environment em distros Debian-like
Postfix: Configurando o Gmail como Relay (moleza)
Nenhum comentário foi encontrado.
Kernel 6.18 em foco, betas fervilhando e avanços em IA no Linux
O que é o THP na configuração de RAM do Linux e quando desabilitá-lo
Comparação entre os escalonadores BFQ e MQ-Deadline (acesso a disco) no Arch e Debian
Adicionando o repositório backports no Debian 13 Trixie
Como definir um IP estático no Linux Debian
intervenção politica pode interver no Fedora Linux [RESOLVIDO] (9)
Fedora não reconhece James Donkey 102 Wireless Gaming Mouse (1)
Primeiras impressões do Debian 13 (23)