get searchwolf running
This commit is contained in:
parent
ceccab3cb9
commit
6069dd0b2b
2 changed files with 23 additions and 26 deletions
|
@ -1,2 +1,2 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.writeShellScriptBin "searchwolf" builtins.readFile ./searchwolf.sh
|
||||
pkgs.writeShellScriptBin "searchwolf" (builtins.readFile ./searchwolf.sh)
|
||||
|
|
9
scripts/desktop/searchwolf.sh
Normal file → Executable file
9
scripts/desktop/searchwolf.sh
Normal file → Executable file
|
@ -1,5 +1,3 @@
|
|||
|
||||
echo "retv $ROFI_RETV"
|
||||
if [ x"$@" = x"exit" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
@ -8,10 +6,9 @@
|
|||
0)
|
||||
;;
|
||||
1)
|
||||
if [ $ROFI_DATA = x"" ]; then
|
||||
exit 0
|
||||
fi
|
||||
coproc ( librewolf --new-tab "$(echo $ROFI_DATA | jq -r.[${@%%.*}])" > /dev/null 2>&1 )
|
||||
val=${@%%.*}
|
||||
res=$(echo $ROFI_DATA | jq -r ".[$val]" )
|
||||
coproc ( librewolf --new-tab $res > /dev/null 2>&1 )
|
||||
exit 0
|
||||
;;
|
||||
2)
|
||||
|
|
Loading…
Reference in a new issue