Create rofi_web.sh

This commit is contained in:
2025-09-24 18:00:12 +02:00
committed by GitHub
parent defa476f40
commit b7017635a3

8
shell/rofi_web.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
# Prompt user for search query
query=$(nix-shell -p rofi xdg-utils --run "rofi -dmenu -p 'WebSearch: '")
if [[ -n "$query" ]]; then
xdg-open "https://duckduckgo.com/?q=$(echo $query | sed 's/ /+/g')"
fi