LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Deepin (https://www.linuxquestions.org/questions/linux-deepin-101/)
-   -   Add auto-startup commands (https://www.linuxquestions.org/questions/linux-deepin-101/add-auto-startup-commands-4175682725/)

ya_sg 09-26-2020 01:04 AM

Add auto-startup commands
 
Hi, I have a backlit keyboard that requires Scroll Lock enabled for the backlight to work.

In Ubuntu 20.04.1, I executed xmodmap -e "add mod3 = Scroll_Lock" in the terminal and then saved the code in the startup applications to make it run automatically on boot. However, in Deepin OS I don't find any option for the startup applications. What should I do here to make the command run on every boot?

ya_sg 09-27-2020 05:09 AM

Run this gedit ~/.config/autostart/newshell.sh.desktop and add this in the file through a text editor:

Code:

[Desktop Entry]
 Type=Application
 Exec=xmodmap -e "add mod3 = Scroll_Lock"
 Name=scrollock
 Comment=Enable Scroll Lock



All times are GMT -5. The time now is 01:28 PM.