LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-24-2022, 06:30 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
sticky keys held down to repeat


i'm using sticky keys because it makes one handed CLI easier. but, when holding the non-modifier key down to repeat it the modification only applies to the first instance of the repeating sequence. what i would like to have happen is when i press the "Shift" key and release it then press the "z" key and hold it down for a few seconds before releasing it is to get "ZZZZZZZZ" instead of "Zzzzzzzz". what i get now is counter-intuitive to me. i think that the modification should persist until the modified key is released, at least in an extended mode of operation. is this possible to set or enable?
 
Old 06-25-2022, 12:16 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
What you seek is not on the keyboard, but is on the mouse. It's called 'copy & paste' there. In CLI, you can use gpm. Left button to copy, middle button to paste, any other mouse button (except on the taskbar) clears the copied text.

Modifiers allow 4 different characters to be displayed on each key. The usual modifiers are:
  1. No modifier
  2. Shift
  3. Right_Alt
  4. Right_Alt + Shift
Most layouts have some pre-configured, and you can configure more. I've configured a few for my own needs: 4 $ € ¢; = + ≠ ±; x X × ≅; l L ´ ¾; 3 £ © ³; 0 ) º °; etc. But being one handed myself, you have to be careful with the Right_Alt + Shift modifier, as not all keys may be accessible with 2 fingers already committed!
 
1 members found this post helpful.
Old 06-25-2022, 06:21 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i'm finding that modifiers do accumulate. at least i can do Ctrl then Shift then + in xfce4-terminal to increase the font size. it's when i want to repeat that i have trouble if it's something modified like "R" or Ctrl-H.

the other thing i would like is a way to cancel modifiers. if i have pressed a modifier then decide i do not want to press the next thing and press an unmodified key, instead, i can't. if there was a "do nothing even if modified" key, that would solve it. i could press that to use away the modifiers i have pressed.
 
Old 06-26-2022, 08:26 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The two I mentioned (Shift & Right Alt) are the key modifiers. Outside of that you're into program specific keyboard shortcuts. You're on yopur own there.


There's one other thing I should mention. In the keyboard mods, there 'dead' keys, most often used for accents. I've programmed a few of those, and very handy they are too. You press a dead key, and nothing happens, but you don't move forward a space. The next key you press should be the letter which is to get the accent. So I programmed in a few accents until I started running out of space. I still have to grep the keyboard file (/etc/X11/xkb/symbols/your_choice) occasionally.
 
Old 06-26-2022, 06:24 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i do not understand what you mean by "key modifiers". when you say "Shift" do you mean what i would refer to as "Left Shift"?

my /etc/X11/xkb is empty. there is no /etc/X11/xkb/symbols. what could that mean?
 
Old 06-26-2022, 06:53 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Skaperen View Post
what i would like to have happen is when i press the "Shift" key and release it then press the "z" key and hold it down for a few seconds before releasing it is to get "ZZZZZZZZ" instead of "Zzzzzzzz".
You can come close to what you want by using the "Caps Lock" key. The one difference is after the last "Z" you have to hit the "Caps Lock" key again to turn it off.
 
Old 06-26-2022, 07:24 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
for upper case letters, that is exactly what i do. but that does not work for "$$$$$$$$$". for that i have to hold either Shift key down while repeating the 4/$ key.
 
Old 06-27-2022, 06:07 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I've got very advanced with the Right_Alt & Shift keys. "$$$$$$$$$" is Left Shift + 4. I got programming before I got thinking, so ¹²³ are achieved by: Clockwise rotation 30°-45° of keyboard; thumb on Right Alt; middle finger on left Shift; Little finger on 1,2,3. That's more than a little insane. You really need a left hand for that sort of thing, but mine doesn't move. It's a battle of wits for us, especially as the numeric keypad doesn't do special characters.

I did manage to document my customised keymap, though.
Code:
`123456      78      90-=
¬!”£$%^      &*      ()_+
¦¡™©€§^(dead)¶”(dead)ªº–≠
 123456      78      90-=
 ¹²³¢†‰      ⁊•      ·°—±

qw      ert y u io p[ ]
QW      ERT Y U IO P{ }
œ˙(dead)é®þ ¥ ú íó ‚“ ‘
qw      ert y u io  [ ]
Œ̇˙(dead)É‰Þ µ Ú ÍÓ  ” ’

asdfgh      jk      l ; ‘  #
ASDFGH      JK      L
áßðƒ©˙(dead)ı°(dead)´ … æ  «
asdfgh      j       k   ‘  #  
ÁẞÐ         ¼½      ¾ ‡  Æ »

\      z xc      v      b      n      m,./	
|      Z XC      V      B      N      M<>?
`(dead)〈 ׸(dead)ˇ(dead)¨(dead)~(dead)¯≤≥÷
\      z xc      v      b      n      m,./	
´(dead)  ≅¸                            „‚¿
The lines are:
  1. No modifiers pressed
  2. Shift only
  3. Right Alt only
  4. No Modifiers pressed (In gray)
  5. Right Alt + Shift
The repeat of the keys with no modifiers makes it easier to follow what the Right Alt_Shift keys are.

Last edited by business_kid; 06-27-2022 at 06:28 AM.
 
Old 06-27-2022, 08:37 PM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i totally cannot understand what you are doing. and, how do i rotate a keyboard that is part of a laptop on a riser frame?
 
Old 06-28-2022, 03:47 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by Skaperen View Post
i totally cannot understand what you are doing. and, how do i rotate a keyboard that is part of a laptop on a riser frame?
To answer the second part, with great difficulty, I imagine. It certainly limits what you can do. I have a wireless keyboard.
 
1 members found this post helpful.
Old 06-29-2022, 11:26 PM   #11
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i will assume the feature i want does not exist. if i ever get into hacking X source i'll look at input handling and see if i can change it. but, more likely, Wayland will be the big thing of the day. then, i wonder if sticky keys will even be around. but it least the source code should be simpler.
 
Old 06-30-2022, 04:54 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
There are programs or adaptions done for handling I/O for limited and even blind individuals.

I aquired bad habits, because as a youngster I got epilepsy. I was dismissed as handicapped. I rejected that and lived as normal a life as I could, being brought up short occasionally. I drove ran my own business, and raised a family. I've kept that attitude despite the stroke.
 
  


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
LXer: What is Linux sticky bit and how to set Linux sticky bit. LXer Syndicated Linux News 0 01-25-2018 01:12 AM
Sticky situation bcos of sticky bit Voyager7 Linux - Newbie 4 02-28-2011 11:29 PM
Kubuntu not detecting keyboard keys being held down reledi Linux - Newbie 2 12-05-2009 02:18 PM
If 2 keys are held down, no input from 3rd key frem Linux - Hardware 3 01-10-2006 01:24 PM
Repeating key actions when keys are held down? carlos123 Linux - Newbie 0 01-29-2003 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:21 AM.

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