OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> left/middle/right mouse clicks and F1-F12 and Insert keystrokes
Jeffrey Mark Sis...
post Jul 11 2018, 12:29 PM
Post #1





Group: Members
Posts: 10
Joined: 11-July 18
Member No.: 825,932



The twm+emacs setup that I have used for four decades on all of my Unix and then later Linux machines (dekstops, laptops, PDAs, ...) relies on left/middle/right mouse clicks and ability to type the F1-F12 and Insert keystrokes. Can I do this in DebianTP2? How?

My standard setup (which at this point is neurally encoded) uses F1-F10 to select different (emacs, xpdf, xcalc, ...) windows.

I tried setting up .twmrc with

"F10" = : all : f.warpto "xcalc"
"F10" = s : all : f.warpto "xcalc"
"F10" = m1 : all : f.warpto "xcalc"
"F10" = s | m1 : all : f.warpto "xcalc"

with m1 varying among m2, m3, m4, and m5 but none of them worked. Any ideas?
Go to the top of the page
 
+Quote Post
frnzndr
post Jul 15 2018, 05:52 AM
Post #2





Group: Members
Posts: 13
Joined: 14-July 18
Member No.: 826,111



So my inability to get a right mouse-click to work isn't just my own misconfiguration, it doesn't work for anyone (except for the alternative driver in another thread which uses the touchscreen as a trackpad)?

If anyone knows how to get a right click on the touchscreen, I'd love to hear about solutions! I tried using evdev instead of libinput, but that didn't help (maybe expectedly considering libinput is more modern).

The F1-F12 keys would also be useful to get to. Somewhere I read that you should be able to get them with Fn+Shift+1-12, maybe give that a try. It might work in the native Linux, does not in a chroot running via Android, but maybe that is to be expected. (I decided yesterday to try a chrooted Linux for the time being, as I need newer packages than those provided in stretch and using testing or even stretch-backports seems to break the ability to boot into the native linux.)
Go to the top of the page
 
+Quote Post
Eric BF
post Jul 15 2018, 01:21 PM
Post #3





Group: Members
Posts: 76
Joined: 25-June 18
Member No.: 824,997



QUOTE(frnzndr @ Jul 15 2018, 01:52 PM) *
The F1-F12 keys would also be useful to get to. Somewhere I read that you should be able to get them with Fn+Shift+1-12, maybe give that a try. It might work in the native Linux, does not in a chroot running via Android, but maybe that is to be expected.

F1 through F10 do indeed work with Fn+Shift+ 1 through 0. Problem is getting F11 and F12...

And you are right that there does not seem to be any way of getting right (or middle) mouse button clicks.
Go to the top of the page
 
+Quote Post
DonOregano
post Jul 15 2018, 02:26 PM
Post #4





Group: Members
Posts: 24
Joined: 26-June 18
Member No.: 825,047



QUOTE(Eric BF @ Jul 15 2018, 11:21 PM) *
And you are right that there does not seem to be any way of getting right (or middle) mouse button clicks.


What stuff have people tried? Read about something called Touchégg (https://code.google.com/archive/p/touchegg/) that might be worth a shot?

My Gemini is out of commission for the time being (4G woes), so I can't try it myself.
Go to the top of the page
 
+Quote Post
tuk0z
post Jul 16 2018, 04:22 AM
Post #5





Group: Members
Posts: 44
Joined: 18-February 18
Member No.: 817,984



QUOTE(frnzndr @ Jul 15 2018, 03:52 PM) *
So my inability to get a right mouse-click to work isn't just my own misconfiguration, it doesn't work for anyone (except for the alternative driver in another thread which uses the touchscreen as a trackpad)?

If anyone knows how to get a right click on the touchscreen, I'd love to hear about solutions! I tried using evdev instead of libinput, but that didn't help (maybe expectedly considering libinput is more modern).

The F1-F12 keys would also be useful to get to. Somewhere I read that you should be able to get them with Fn+Shift+1-12, maybe give that a try. It might work in the native Linux, does not in a chroot running via Android, but maybe that is to be expected. (I decided yesterday to try a chrooted Linux for the time being, as I need newer packages than those provided in stretch and using testing or even stretch-backports seems to break the ability to boot into the native linux.)


Using testing or even stretch-backports breaks the ability to boot into the native linux: I can confirm this. I'll try to chroot into it and find out (via logs) then downgrade the culprit package(s). Untill then I can't help testing mouse/keystroke (remapping) tools :/
Go to the top of the page
 
+Quote Post
Eric BF
post Jul 16 2018, 07:30 AM
Post #6





Group: Members
Posts: 76
Joined: 25-June 18
Member No.: 824,997



QUOTE(tuk0z @ Jul 16 2018, 12:22 PM) *
Using testing or even stretch-backports breaks the ability to boot into the native linux: I can confirm this. I'll try to chroot into it and find out (via logs) then downgrade the culprit package(s). Untill then I can't help testing mouse/keystroke (remapping) tools :/

My approach is to be very selective in upgrading any packages, making sure I only upgrade those that do not require upgrades to key system components. stretch-backports gives me access to what I need without breaking my system.

If I need to be at the bleeding edge for any particular Debian package, there's (almost) always the possibility of simply building the package myself. I've done this, for instance, with Emacs for which snapshots are only available for other architectures.
Go to the top of the page
 
+Quote Post
DJO
post Jul 16 2018, 09:36 AM
Post #7





Group: Members
Posts: 71
Joined: 5-March 18
Member No.: 818,744



QUOTE(Eric BF @ Jul 15 2018, 10:21 PM) *
Problem is getting F11 and F12...


I read somewhere that the lid switches are on F11 & F12 which may or may not be true, not sure how you'd go about testing it though.
Go to the top of the page
 
+Quote Post
Eric BF
post Jul 16 2018, 12:48 PM
Post #8





Group: Members
Posts: 76
Joined: 25-June 18
Member No.: 824,997



QUOTE(DJO @ Jul 16 2018, 05:36 PM) *
I read somewhere that the lid switches are on F11 & F12 which may or may not be true, not sure how you'd go about testing it though.

I guess you could run xev and copy the output to a file to see what happens when you close and open the lid. But even if so, I'm not sure how useful this would be.

It is, of course, possible to map some key combination to generate F11 and F12 using xmodmap. But easier probably to assign any functions that would normally be on those keys to other keys.
Go to the top of the page
 
+Quote Post
Kiriririn
post Jul 17 2018, 06:59 AM
Post #9





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(DJO @ Jul 16 2018, 06:36 PM) *
QUOTE(Eric BF @ Jul 15 2018, 10:21 PM) *
Problem is getting F11 and F12...


I read somewhere that the lid switches are on F11 & F12 which may or may not be true, not sure how you'd go about testing it though.


That isn't the case any more https://github.com/gemian/gemini-linux-kern...47c8967963d6b0f
Go to the top of the page
 
+Quote Post
frnzndr
post Aug 18 2018, 12:20 PM
Post #10





Group: Members
Posts: 13
Joined: 14-July 18
Member No.: 826,111



Has anyone found a way to get a right mouseclick? (Or any non-left click, for that matter)
Go to the top of the page
 
+Quote Post
loop
post Aug 19 2018, 02:42 AM
Post #11





Group: Members
Posts: 17
Joined: 16-June 18
Member No.: 824,560



QUOTE(frnzndr @ Aug 18 2018, 10:20 PM) *
Has anyone found a way to get a right mouseclick? (Or any non-left click, for that matter)


To use the silver button as right mouse button:
CODE
xkbset m
xmodmap -e "keycode 239 = Pointer_Button3"

To use Fn+H as right mouse button:
CODE
xkbset m
xmodmap -e "keycode 43 = h H VoidSymbol VoidSymbol Pointer_Button3 Pointer_Button3"

Go to the top of the page
 
+Quote Post
gemini_user_j
post Aug 19 2018, 08:04 AM
Post #12





Group: Members
Posts: 39
Joined: 9-August 18
Member No.: 827,849



QUOTE(loop @ Aug 19 2018, 02:42 AM) *
QUOTE(frnzndr @ Aug 18 2018, 10:20 PM) *
Has anyone found a way to get a right mouseclick? (Or any non-left click, for that matter)


To use the silver button as right mouse button:
CODE
xkbset m
xmodmap -e "keycode 239 = Pointer_Button3"

To use Fn+H as right mouse button:
CODE
xkbset m
xmodmap -e "keycode 43 = h H VoidSymbol VoidSymbol Pointer_Button3 Pointer_Button3"



Hey, this is really cool, but I messed up my keyboard layout in half way through modifying the keys:
I just did a sudo apt install xkbset and ran it with --help to see the options.

I also did a sudo xmodmap -pke and got a whole list of all my keys.

Something got a bit weird, while I was trying to figure out what the columns after = are.
On my gemini, I have up to 7 entries, and I have the following guess:

1, key
2, key + shift
3, key + ?
4, key + ? + shift
5, key + fn
6, key + fn + shift
7, key + fn + ??

I found a wikipage from archlinux https://wiki.archlinux.org/index.php/xmodmap
where they only list 6 different combinations:
QUOTE
Each keysym column in the table corresponds to a particular combination of modifier keys:
1. Key
2. Shift+Key
3. Mode_switch+Key
4. Mode_switch+Shift+Key
5. ISO_Level3_Shift+Key
6. ISO_Level3_Shift+Shift+Key


from this wiki, I would guess that ISO_Level3_Shift would be fn
'Mode_switch' I am not sure about, I would have guessed alt, but when I tried typing in chromium while holding alt, nothing happened.

However to get to the weird thing:

My gemini switched from US-International to Canadian Multiligual: http://xahlee.info/kbd/i18n_keyboard_layouts.html

It was only after trying to type some scandinavian characters I noticed something was a bit odd, and only when I spotted the images from the link above, I realized what had happened.

In LXQt settings --> Keyboard and Mouse, I dont even have a menu for English Canadian layout, and my settings are still English (US) but I dont see the regular US-international, but many others, that I would expect.

If I set the settings to English (US, intl., with dead keys) I still get the Canadian Multiligual layout.

This is really the weirdest thing I have experienced though my 10 years of using linux.


So where as I very much would like to get rid of that spoken time when hitting the silver side button,
I would really like to hear if anyone has an idea on how to reset/reconfigure the keyboard layout.

cheers!
I will edit this post if I find a solution smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd July 2019 - 02:04 AM