Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- result="$1"
- config="$HOME/.config/rofi/config-translate.rasi"
- theme="$HOME/.config/rofi/theme-translate.rasi"
- command="rofi-1.6.1 -p Перевести -config $config -theme $theme -dmenu"
- if [[ -n "$1" && "$1" != *"Найдено"* ]]; then
- # result="$(sdcv -n -u dictd_www.mova.org_sokrat_enru $1)"
- result=$(sdcv -n -u 'LingvoUniversal (En-Ru)' "$result")
- # result="$(sdcv -n $1)"
- echo -e "$result" | $command
- else
- $command -mesg "Введи слово для перевода"
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement