public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] NumLock puzzle
Date: Tue, 24 May 2016 19:09:26 +0100	[thread overview]
Message-ID: <2756114.fNYTaf7jmF@dell_xps> (raw)
In-Reply-To: <20160524194141.00e76d1d@hal9000.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1745 bytes --]

On Tuesday 24 May 2016 19:41:41 wabe wrote:
> Philip Webb <purslow@ca.inter.net> wrote:
> > 160524 wabe wrote:
> > > Philip Webb <purslow@ca.inter.net> wrote:
> > >> I've noticed that the NumLock key goes off after 'startx'.
> > >> My window manager is Fluxbox & I don't see any mention there
> > >> nor does there seem to be any setting under  /etc/X11 .
> > >> I have added 'numlock' to the default runlevel,
> > >> but that makes no difference.
> > > 
> > > I had the same "problem" under XFCE till I added to my .xinitrc
> > > 'xsetleds +num -caps -scroll'
> > 
> > I tried that, inserting it before/after 'startfluxbox',
> > but it makes no difference.
> > 'xsetleds' has no man file & 'which xsetleds' yields nothing.
> 
> $ which xsetleds
> /usr/bin/xsetleds
> 
> eix xsetleds
> [I] x11-misc/xsetleds
>      Verfügbare Versionen:   0.1.3{tbz2} ~0.1.3-r1
>      Installierte Versionen: 0.1.3{tbz2}(07:53:32 25.10.2010)
>      Startseite:             ftp://ftp.unix-ag.org/user/bmeurer/xsetleds/
>      Beschreibung:           small tool to report and change the keyboard
> LED states of an X display
> 
> 
> There is also a manpage for xsetleds. I guess, xsetleds isn't just
> installed on your system.
> 
> --
> Regards
> wabe

Alternatively, check man xset.

I was not sure if either of these just switches the LEDs on/off, or if it also 
modifies the underlying functionality.  I couldn't get xset to change my 
numlock because it wouldn't recognise "Num Lock" as a name and numbers 1 to 3 
would not have an effect on it.

Anyway, the way I did it was by emerging numlockx and then creating this file:

cat /etc/X11/xinit/xinitrc.d/95-numlockx
#!/bin/sh
numlockx on

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2016-05-24 18:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 11:09 [gentoo-user] NumLock puzzle Philip Webb
2016-05-24 13:50 ` wabe
2016-05-24 17:27   ` Philip Webb
2016-05-24 17:41     ` wabe
2016-05-24 18:09       ` Mick [this message]
2016-05-24 21:29     ` Dutch Ingraham
2016-06-06  3:12       ` Philip Webb
2016-06-06  4:18         ` Dutch Ingraham
2016-06-06  6:28           ` Philip Webb
2016-06-06  8:29             ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2756114.fNYTaf7jmF@dell_xps \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox