I have a screenshot tool that only works if I start it from the same directory where the file is in. Now I want to make a shortcut to just press print, the command is:
bash -c '~/Documents/KneckPrint | xsel --clipboard'
Now as I said, this doesn't work if I don't execute it from the KneckPrint folder.
bash -c 'cd ~/Documents/KneckPrint | KneckPrint | xsel --clipboard'
But that doesn't work so I'm left clueless.
bash -c '…' seems to be necessary because otherwise xsel doesn't get executed.