LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin
User Name
Password
Linux Deepin This forum is for the discussion of Linux Deepin.

Notices


Reply
  Search this Thread
Old 09-26-2020, 01:04 AM   #1
ya_sg
LQ Newbie
 
Registered: Sep 2020
Posts: 10

Rep: Reputation: Disabled
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?
 
Old 09-27-2020, 05:09 AM   #2
ya_sg
LQ Newbie
 
Registered: Sep 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why static routes set using 'ip route add' and 'route add' commands are not used for routing packets within the same network? kanak@tetcos.com Linux - Networking 7 04-25-2017 05:52 AM
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
Auto-executing soundcard commands at startup VA3OG Ubuntu 1 11-06-2005 12:25 PM
How do I add start and stop commands to systems startup and shutdown processes? mlsbraves Slackware 1 11-25-2004 07:04 AM
How do add daemons/servers to auto-startup list? bjc Linux - Newbie 2 10-23-2000 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration