How to write working commands for keyboard shortcuts?

For instance, ww-run-raise works when ran in the terminal: /home/user/Assets/Scripts/ww-run-raise/ww -f "zen-beta" -c "zen" -p "zen ", but that command doesn’t work when I create a new shortcut under Settings > Keyboard > Shortcuts. I also tried bash -c '/home/user/Assets/Scripts/ww-run-raise/ww -f "zen-beta" -c "zen" -p "zen "' and sh -c.

try running it in a terminal

konsole --hold -e bash -c “echo ‘hello’ ; exec bash”

you can leave out the --hold and the ; exec bash if you don’t want to have a new terminal window on your screen.

Works in the terminal (kitty) but not in the shortcut

is your script along the $PATH somewhere?

i keep min in ~/bin so i know they will always execute.

I found the issue, the script doesn’t have a file extension, it works when I add `.sh` to it and the command. It’s mentioned in this bug report, and I made my own: 514400 – Keyboard shortcut for script doesn’t work without file extension, and shows no errors or notifications.