mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
Create rofi_web.sh
This commit is contained in:
8
shell/rofi_web.sh
Normal file
8
shell/rofi_web.sh
Normal 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
|
||||||
Reference in New Issue
Block a user