wiki:execute_custom_command_gnome
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
- Ubuntu 24.04
- Wayland WM
- xclip
See also
References
wiki/execute_custom_command_gnome.txt · Last modified: by antisa