reimplement config dotfiles with templates

This commit is contained in:
SALVI Jérémie
2024-08-15 17:56:06 +02:00
parent 9ae4fdb609
commit d02841fd19
49 changed files with 2451 additions and 219 deletions

22
scripts/search.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
_RESULT=$(printf "Google \0icon\x1fgoogle
Arch \0icon\x1fdistributor-logo-archlinux
Github \0icon\x1fgithub" | rofi -dmenu -show-icons -i -theme disconnect -p Search)
echo "$_RESULT"
_SEARCH_ENGINE="$(cut -d " " -f 1 <<< "$_RESULT")"
_QUERRY="$(cut -d " " -f 2- <<< "$_RESULT")"
case $_SEARCH_ENGINE in
"Google")
firefox "https://www.google.com/search?client=firefox-b-d&q=$_QUERRY"
;;
"Arch")
firefox "https://archlinux.org/packages/?sort=&q=$_QUERRY"
;;
"Github")
firefox "https://github.com/search?q=$_QUERRY"
;;
esac