3

On Ubuntu 18.04 I can setup custom keyboard shortcuts to run terminal commands via:

Settings > Devices > Keyboard > +

Name: htop keyboard shortcut
Command: htop
ShortCut: Ctrl+Super+Delete

This usually works without issue when I've created shortcuts for other terminal commands, other than htop. When I try and issue the htop to Ctrl+Super+Delete it just doesn't work.

I press Ctrl+Super+Delete and the htop system monitor doesn't initiate on my system. What's wrong? All the other keyboard shortcuts I've created in this manner are working fine.

AEM
  • 1,166
Display name
  • 2,231

1 Answers1

6

WorkAround

use the command gnome-terminal -- htop instead of htop

Verified on Ubuntu 18.04

enter image description here

PRATAP
  • 22,460
  • 1
    Thank you! Any idea why some terminal commands require the gnome-terminal -- prefix? – Display name Oct 22 '19 at 21:39
  • 1
    I have tried different combinations of shortcut keys other than ctrl+super+del and nothing worked for htop command.. but when I type htop in terminal it worked.. so the workaround is to open gnome-terminal and then run htop command.. the prefix opens terminal and then runs the command.. – PRATAP Oct 23 '19 at 02:14