How to run a "Keep NumLock always on" command in Linux Mint 19 Cinnamon on each reboot / re-login?

LinuxSecurityFreak

In an answer of my question on Code Review:

Keep NumLock always on in Linux (C++),

I am pointed to the right solution for this problem, that being a command:

setxkbmap -option numpad:mac

which proves to work when I invoke it from logged in session.


I am trying to invoke it on each reboot / re-login.

So far, my best guess was to edit my user's crontab:

$ crontab -l

@reboot /usr/bin/setxkbmap -option numpad:mac

But this does not seem to work for some reason.


Just to note that this is not a duplicate of questions formulated like How to keep NumLock always on.


I have now tried to add a little (from terminal working shell script) to Startup Applications to no avail:

NumLock script in Startup Applications

LinuxSecurityFreak

Adding a Startup Delay to that Startup Applications entry did help.

I am unsure, why it is necessary or how low I can set it, nor if that is individual to a system, so a better answer explaining these things might be welcome.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Linux Mint 17 Cinnamon: how can I run an application prior to the login screen?

From Dev

How to run a command automatically after each reboot

From Dev

How do I install Redshift 1.12 on Linux Mint 19 Cinnamon from source?

From Dev

Why cinnamon and linux mint 19 do not hide my folders?

From Dev

linux mint 19 cinnamon cpu temerature goes crazy!

From Dev

How to Mint 19 Cinnamon taskbar application remove grouping

From Dev

Keep NumLock always on

From Dev

Keep NumLock always on

From Dev

Keep NumLock always on

From Dev

Screen stretching on Mint Cinnamon after hard reboot

From Dev

How to set animated theme on login screen in Mint 18.3 Cinnamon?

From Dev

How to reset .profile in Linux Mint 19

From Dev

How to enable JSHint in SublimeLinter in Linux Mint 17 Cinnamon?

From Dev

How to enable mouse focus in Linux Mint 15 with Cinnamon

From Dev

how to install nividia bumbulbee in linux mint 17.1 (cinnamon)?

From Dev

How to formally change Linux Mint KDE to Cinnamon edition?

From Dev

Linux Mint out-of-box install: How to Replace Cinnamon with icewm

From Dev

Linux Mint 20 Cinnamon - How to disable [Super][Space]?

From Dev

Empathy - Linux Mint 17.1 Cinnamon

From Dev

VirtualBox -Linux Mint Cinnamon crashes

From Dev

What is Cinnamon process in Linux Mint?

From Dev

Trying to run Kile gives a segmentation fault on Linux Mint 19

From Dev

How can I restore an xkilled panel in Linux Mint without a reboot?

From Dev

Linux Mint 18 Cinnamon default boot to shell / command line / disable GUI

From Dev

how to disable auto login in linux mint

From Dev

Linux Mint 18.3 Cinnamon cannot start a session

From Dev

Linux Cinnamon Mint 17.3 - panel applet broken

From Dev

Linux Mint Cinnamon - Play A Sound On Lock?

From Dev

xfrun4 alternative for Linux Mint Cinnamon

Related Related

  1. 1

    Linux Mint 17 Cinnamon: how can I run an application prior to the login screen?

  2. 2

    How to run a command automatically after each reboot

  3. 3

    How do I install Redshift 1.12 on Linux Mint 19 Cinnamon from source?

  4. 4

    Why cinnamon and linux mint 19 do not hide my folders?

  5. 5

    linux mint 19 cinnamon cpu temerature goes crazy!

  6. 6

    How to Mint 19 Cinnamon taskbar application remove grouping

  7. 7

    Keep NumLock always on

  8. 8

    Keep NumLock always on

  9. 9

    Keep NumLock always on

  10. 10

    Screen stretching on Mint Cinnamon after hard reboot

  11. 11

    How to set animated theme on login screen in Mint 18.3 Cinnamon?

  12. 12

    How to reset .profile in Linux Mint 19

  13. 13

    How to enable JSHint in SublimeLinter in Linux Mint 17 Cinnamon?

  14. 14

    How to enable mouse focus in Linux Mint 15 with Cinnamon

  15. 15

    how to install nividia bumbulbee in linux mint 17.1 (cinnamon)?

  16. 16

    How to formally change Linux Mint KDE to Cinnamon edition?

  17. 17

    Linux Mint out-of-box install: How to Replace Cinnamon with icewm

  18. 18

    Linux Mint 20 Cinnamon - How to disable [Super][Space]?

  19. 19

    Empathy - Linux Mint 17.1 Cinnamon

  20. 20

    VirtualBox -Linux Mint Cinnamon crashes

  21. 21

    What is Cinnamon process in Linux Mint?

  22. 22

    Trying to run Kile gives a segmentation fault on Linux Mint 19

  23. 23

    How can I restore an xkilled panel in Linux Mint without a reboot?

  24. 24

    Linux Mint 18 Cinnamon default boot to shell / command line / disable GUI

  25. 25

    how to disable auto login in linux mint

  26. 26

    Linux Mint 18.3 Cinnamon cannot start a session

  27. 27

    Linux Cinnamon Mint 17.3 - panel applet broken

  28. 28

    Linux Mint Cinnamon - Play A Sound On Lock?

  29. 29

    xfrun4 alternative for Linux Mint Cinnamon

HotTag

Archive