Table of Contents

, ,

Execute custom command from Gnome

Execute a bash script that takes output of xclip as first argument

bash -c "/home/user/what_hostname.sh $(xclip -o)"

Insert above line in Settings > Keyboard > Keyboard Shortcuts > View and Customize Shortcuts > Custom Shortcuts or use dconf to do it.

Make sure above script is executable

chmod +x what_hostname.sh

Tested on

See also

References