I switched to Linux a during the year of the Linux desktop (tm) and it's been great but I have one small issue maybe someone knows how to fix.

I have tried 4 different distros so far (currently using bazzite and kachy on two different machines) and they all do this: every time the computer restarts, numlock turns off by default. I use keyboards with a numpad and the numpads do nothing it seems unless I hit numlock first. This is compared to every windows or apple machine used previously where numlock is pressed once after buying the computer then never needs to be again.

Is this the most minor inconvenience ever? Quite possibly. But I still find myself trying to enter numbers often and being frustrated I don't notice right away. Probably doesn't help I have a bunch of them in my unlock password after every restart.

Tl:dr; how to get numlock to activate on startup

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 hours ago (1 child)

How do I find out what desktop environment?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 3 hours ago*

    A simple way, you can take a look

    echo "$XDG_CURRENT_DESKTOP"
    

    in the terminal.

    Let's do it faster, to check what is running inside the seat.

    Here is a one-liner, just run it in your terminal:

    desktop="${XDG_CURRENT_DESKTOP:-${XDG_SESSION_DESKTOP:-}}"; session_type="${XDG_SESSION_TYPE:-}"; info="" session=""; if command -v loginctl >/dev/null 2>&1; then session="${XDG_SESSION_ID:-self}"; info=$(loginctl show-session "$session" -p Desktop -p Type 2>/dev/null) || info=""; if [[ -z "$desktop" ]]; then desktop=$(sed -n 's/^Desktop=//p' <<< "$info"); fi; if [[ -z "$session_type" ]]; then session_type=$(sed -n 's/^Type=//p' <<< "$info"); fi; fi; printf 'DE=%s\n' "${desktop:-unknown}"; printf 'TYPE=%s\n' "${session_type:-unknown}"
    

    It will show something like

    DE=KDE
    TYPE=wayland
    
  • source
  • parent