{{tag>shortcuts gnome dconf}} ====== 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|dconf]] to do it. Make sure above script is executable chmod +x what_hostname.sh ====== Tested on ====== * Ubuntu 24.04 * Wayland WM * xclip ====== See also ====== ====== References ======