Example which translate chinese words, just highlight the word and hit super + z (in my case)

wmctrl -a Firefox && sh -c 'firefox "https://translate.google.com/?sl=zh-CN&tl=en&text=$(xclip -o)"'