Browser - use rofi para acessar páginas na web
Publicado por Perfil removido (última atualização em 18/04/2017)
[ Hits: 1.551 ]
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
Cadastrando usuários no Squid através de Shell Script
usando a lixeira em modo texto
Nenhum comentário foi encontrado.
Atenção a quem posta conteúdo de dicas, scripts e tal (6)
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
O mínimo que você precisa saber sobre o terminal (parte 2)
O mínimo que você precisa saber sobre o terminal (parte 1)
Como iniciar uma máquina virtual do VirtualBox automaticamente no boot do LUbuntu 18 LTS
Mudar o gerenciador de login (GDM para SDDM e vice-versa) - parte 2
Como deixar as abas do Firefox mais fininhas
Mudar o gerenciador de login (GDM para SDDM)
"Tentando" fazer com que programas rodem no Wayland e no X11
Porblema com MergeList [RESOLVIDO] (10)
Melhor hospedagem em nuvem para projetos Laravel com baixo custo? [RES... (7)
Como baixar os drivers de áudio no linux mint? (7)
Como posso localizar o arquivo HTML da página inicial do GLPI dentro d... (2)
[Python] Automação de scan de vulnerabilidades
[Python] Script para analise de superficie de ataque
[Shell Script] Novo script para redimensionar, rotacionar, converter e espelhar arquivos de imagem
[Shell Script] Iniciador de DOOM (DSDA-DOOM, Doom Retro ou Woof!)
[Shell Script] Script para adicionar bordas às imagens de uma pasta