User Tools

Site Tools


wiki:execute_custom_command_gnome

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki