I have to edit this post because i cant post anymore the site blocking me from posting
So here, you did it @wxl
Working! Nice
Now, i have to paste that:
I see the problem. I was relying on your previous output which was actually not accurate. There’s actually whitespace between “Elite” and “id” so if we change our grep command to grep "Razer Razer DeathAdder Elite[[:space:]]*id" it will work. I’ll modify my answer above.
Yep. The other thing you can do is to add it to the autostart file. Just add it to ~/.config/lxsession/Lubuntu/autostart. Prepend it with an @ and it will restart even if it crashes, which is kind of nice. At least that’s how it used to work. Perhaps with that fancy new tool (which I find buggy), that (more normal) way of doing things doesn’t work. The GUI autostart tool in 19.04 works really nice.
One thing you may want to try is take your command and put it in a script and use that with autostart. I’m not sure how capable of lxsession-default-apps is at dealing with lots of special characters. There are many in that command. That may be why it didn’t work.
You can put it wherever you want, but I suggest putting it in $HOME/bin . There should be the following lines in $HOME/.profile to add this to your $PATH so that you don’t have to call out the whole path to the file to run it:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
If this is commented out (like the first line) remove the #.
If you don’t have the folder, just add it with mkdir $HOME/bin or use pcmanfm to do it for you.
Then create a new file there. Give it a name of your choosing. Let’s say you call it speedracer.