Corsair: Difference between revisions

Improved template usage, fixed typo
Added method for autostarting ckb-next using .desktop entries, leaving limitations section since it is a workaround that has some minor flaws
 
Line 21: Line 21:
If you find a way to automate this, please append to the wiki!
If you find a way to automate this, please append to the wiki!


Not a great way of doing it, but it works for me. Create '''~/.config/autostart/ckb-next.desktop''', open it in your favorite text editor and type:<syntaxhighlight lang="desktop">[Desktop Entry]
Categories=Settings;System;
Comment[en_US]=Corsair keyboard driver user interface
Comment=Corsair keyboard driver user interface
Exec=<Location of ckb-next executable> -b
GenericName[en_US]=
GenericName=
Icon=ckb-next
Keywords=ckb;corsair;keyboard;rgb;
MimeType=
Name[en_US]=ckb-next
Name=ckb-next
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
TryExec=<Location of ckb-next executable>
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=</syntaxhighlight>
[[Category:Hardware]]
[[Category:Hardware]]
''The -b makes it run in the background''
I was also running into [https://github.com/ckb-next/ckb-next/issues/604 this issue] when I was running it manually; by using the .desktop file, I no longer have this issue. Lastly, '''every time you get a new version of ckb-next, you'll need to update the path in TryExec and Exec''' (both are the same).
A simple way to find the location of ckb-next is to search for it in the Kickoff Application Launcher (or equivalent, not KRunner) > Right Click > Edit Application then copy what is in the "Program" field. That way, if you haven't run a clean in a while and have an older version of ckb-next still installed, you're grabbing the right one.