Skip to content

Change key functions

I'm trying to change the "<" and ">" keys to print "{" and "}" instead. Is there a good way to do this? I've looked into xmodmap and XKB without much success. Does anyone have experience with this?

6 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
6 · 100% up
Kind
Text
ID
62pobl

Author

2
posts
1
comments
0
media
View profile

5 comments

What hasn't worked with xmodmap? You should be able to just dump your current layout and swap the keys in that file.

2 points

It works, but it seems to reset itself after only a few minutes. I followed the instructions on the Wiki for having it load the modified keymap in xinit but a few minutes after startup it returns to default. I guess I could have a cron job to set it back to the modified version every few minutes but that seems ridiculous.

1 points
unknown author

Deleted before we saved it.

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.