fix: Use correct paths in web search bar
This commit is contained in:
parent
fcf8c6d59d
commit
9d92285c96
|
@ -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}"
|
||||
''
|
||||
}";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue