ls ~ / | rofi -show -dmenu does not work with shortcuts in ubuntu

385 Views Asked by At

I am trying to run the ls ~ / | rofi -show -dmenu in a shortcut but it doesn't work, if I run it in terminal it works fine

1

There are 1 best solutions below

0
Nelson David Montaño Barajas On

I solved this problem by creating a .sh file with the command "ls ... etc rofi ..." and then in the shortcut command I ran sh /home/yourusername/path/file.sh it worked for me. be careful not to put ~ or $HOME doesn't seem to work properly.