1
0
Fork 0

fix: Use correct paths in web search bar

This commit is contained in:
lwad 2024-04-13 11:13:41 +01:00
parent fcf8c6d59d
commit 9d92285c96
1 changed files with 2 additions and 2 deletions

View File

@ -366,8 +366,8 @@ with lib; {
"exec --no-startup-id alacritty -e sh -c '(read target && ssh \"$target\")'";
"${mod}+s" = "exec --no-startup-id ${
pkgs.writeScript "web_search.sh" ''
searchString=$(${pkgs.rofi} -dmenu -p "Search" -i -theme-str "listview {lines: 0;}" | ${pkgs.jq}/bin/jq -Rsj @uri | ${pkgs.gnused}/bin/sed -e "s/%0A\$//")
[[ "$searchString" == "" ]] || ${pkgs.librewolf}/librewolf --new-tab "https://duckduckgo.com/?q=''${searchString}"
searchString=$(${pkgs.rofi}/bin/rofi -dmenu -p "Search" -i -theme-str "listview {lines: 0;}" | ${pkgs.jq}/bin/jq -Rsj @uri | ${pkgs.gnused}/bin/sed -e "s/%0A\$//")
[[ "$searchString" == "" ]] || ${pkgs.librewolf}/bin/librewolf --new-tab "https://duckduckgo.com/?q=''${searchString}"
''
}";
}