Is there any way to show a notification when Caps Lock is pressed?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
notfound
Posts: 22
Joined: Mon Mar 05, 2018 10:09 am

Is there any way to show a notification when Caps Lock is pressed?

#1 Post by notfound »

I recently did a new install of MX 23.1 because it was time to upgrade from 19... and I used to use "indicator-keylock" to show a notification whenever Caps Lock was pressed. It showed whether it was on or off, and was extremely useful. Although it seems to not be available any longer. I can't get the repository to work.

Is there any way to have a simple indicator for if Caps Lock is on or off?

I once had a program that would put an icon in the side panel, but I can't find that either.

Thanks.


User avatar
jeffreyC
Posts: 522
Joined: Mon May 27, 2019 10:39 am

Re: Is there any way to show a notification when Caps Lock is pressed?

#3 Post by jeffreyC »

In the repos for MX versions up to MX-21 there was a package indicator-keylock which would specifically do that, the packager who handled it is no longer around (SwampRabbit).
There is a (poorly written) package request for it to be in MX-23 that is getting no traction,

The package for MX-21 is still in the repos and will install in MX-23 if you do it manually.

User avatar
Jerry3904
Administrator
Posts: 23074
Joined: Wed Jul 19, 2006 6:13 am

Re: Is there any way to show a notification when Caps Lock is pressed?

#4 Post by Jerry3904 »

I have a working prototype for a line that appears in a conky, will post once I get it to where I like it

BTW there is an installable plugin in the repos for people using gkrellm
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
notfound
Posts: 22
Joined: Mon Mar 05, 2018 10:09 am

Re: Is there any way to show a notification when Caps Lock is pressed?

#5 Post by notfound »

jeffreyC wrote: Sat Nov 11, 2023 3:28 pm In the repos for MX versions up to MX-21 there was a package indicator-keylock which would specifically do that, the packager who handled it is no longer around (SwampRabbit).
There is a (poorly written) package request for it to be in MX-23 that is getting no traction,

The package for MX-21 is still in the repos and will install in MX-23 if you do it manually.
Indicator-keylock doesn't show on my end. I don't know where to find it in the repos.


User avatar
Jerry3904
Administrator
Posts: 23074
Joined: Wed Jul 19, 2006 6:13 am

Re: Is there any way to show a notification when Caps Lock is pressed?

#7 Post by Jerry3904 »

I have this now at the bottom of my standard conky (MX-Cees) using a laptop that has no leds

Code: Select all

<space>
###### CAPSLOCK ####
${alignc} ${color5}${exec xset q | grep "Caps Lock:   on" | awk '{print "CAPS: " $4}'}
You do not have the required permissions to view the files attached to this post.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
oops
Posts: 1891
Joined: Tue Apr 10, 2018 5:07 pm

Re: Is there any way to show a notification when Caps Lock is pressed?

#8 Post by oops »

Jerry3904 wrote: Sat Nov 11, 2023 4:07 pm I have this now at the bottom of my standard conky (MX-Cees) using a laptop that has no leds

Code: Select all

<space>
###### CAPSLOCK ####
${alignc} ${color5}${exec xset q | grep "Caps Lock:   on" | awk '{print "CAPS: " $4}'}
Yes, even into a terminal ... do the trick:

Code: Select all

xset q | grep "Caps Lock:" 
#or
xset q 
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
ceeslans
Posts: 811
Joined: Sun Apr 14, 2019 3:48 am

Re: Is there any way to show a notification when Caps Lock is pressed?

#9 Post by ceeslans »

notfound wrote: Sat Nov 11, 2023 3:51 pm Indicator-keylock doesn't show on my end. I don't know where to find it in the repos.
try here: http://nl.mxrepo.com/mx/repo/pool/main/ ... _amd64.deb

EDIT: Sorry, here's the full download link for indicator-keylock_3.1.1-0~mx21+1_amd64.deb
http://nl.mxrepo.com/mx/repo/pool/main/ ... _amd64.deb
Last edited by ceeslans on Sat Nov 11, 2023 6:26 pm, edited 1 time in total.
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

Charlie Brown

Re: Is there any way to show a notification when Caps Lock is pressed?

#10 Post by Charlie Brown »

Nope, MX-23.1 :

Code: Select all

$ apt list indic*
Listing... Done
indicator-sensors/stable 1.3-1 amd64
indicator-sensors/stable 1.3-1 i386
indicator-sound-switcher/mx,mx 2.3.9-1~mx23+1 all
In the meantime, you noticed this one in the link, right ?

https://github.com/oco2000/xfce4-kbdleds-plugin

Post Reply

Return to “MX Help”