LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 06-26-2020, 05:57 AM   #1
rfg8ta
LQ Newbie
 
Registered: Jul 2008
Location: Nome, Alaska, USA
Distribution: Kubuntu 8.04
Posts: 3

Rep: Reputation: 0
Forcing keyboard state to lowercase


I got me one of those programmable keypads, an ELSRA PK-2068. It works well, relatively easy to program.

So, I programmed one of the keys to "gedit file_blahX &" and it works.

(note that blahX has 4 lower case letters and one upper case one)

Until, I had the main keyboard on "Caps Lock" state.

What I did was a combination of ctrl-A alt-U alt-l etc here and there, and I
could make it work, but it is incredibly tedious and error prone.

I looked high and low for a command to flip Caps-Lock to lowercase, but
had no luck. I did find for TOGGLING the caps-Lock state, but then that
would not work on my keypad if the main keyboard was already lowercased.

Anyone know of a command to force the keyboard to Lowercase?
 
Old 06-26-2020, 07:11 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315
probably here: https://stackoverflow.com/questions/...sing-x-windows
or here: https://stackoverflow.com/questions/...ocks-in-python
 
Old 06-26-2020, 07:20 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Yes it's strange. I saw xset can query if caps lock is on or not and xdotool can toogle it. But you can combine them, with something like this:

Code:
[ $(xset q | grep -i caps | cut -c 22-24) == "on" ] && xdotool key Caps_Lock
 
Old 06-27-2020, 01:44 AM   #4
rfg8ta
LQ Newbie
 
Registered: Jul 2008
Location: Nome, Alaska, USA
Distribution: Kubuntu 8.04
Posts: 3

Original Poster
Rep: Reputation: 0
That works. Now to figure out how to program something like that into the keyboard. This particular kbd
is limited to 32 characters per key. To be portable, ie, moving the keypad from one computer to another
random computer, would be difficult. Otherwise, yes, I could trigger a script like that.

Let me do some thinking.... Perhaps one key uploads the script for the session.

I was hoping that some sort of obscure key combination like ALT-CTL-RSHIFT-F5 would do it across Mint,
or even Debian ...
 
Old 06-27-2020, 02:18 AM   #5
rfg8ta
LQ Newbie
 
Registered: Jul 2008
Location: Nome, Alaska, USA
Distribution: Kubuntu 8.04
Posts: 3

Original Poster
Rep: Reputation: 0
What I done so far is to set an alias="your command above".
That works.

Not exactly portable, but much better.

I also looked at the Mint shortcuts in the control panel. Looks dangerous, I saw a few
conflicts in there with standard usage in bash.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Joining line ending with lowercase and starting with lowercase, or uppercase hurd Linux - Newbie 11 05-01-2016 01:29 PM
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set deadeyes Linux - Server 14 07-29-2009 04:30 AM
forcing traffic through certain route(forcing source ip) taltman Linux - Networking 1 12-26-2007 01:07 PM
not work: iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp --dport 3306 -j DROP abefroman Linux - Security 1 07-18-2007 08:19 AM
LXer: State by state, Microsoft responds to creeping threat LXer Syndicated Linux News 0 05-01-2007 07:16 AM

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

All times are GMT -5. The time now is 07:18 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