This forum has been archived. All content is frozen. Please use KDE Discuss instead.

What is the best way to switch two keys under KDE?

Tags: None
(comma "," separated)
zariski
Registered Member
Posts
7
Karma
0
I would like to switch my "BackSpace" with "backslash" (habits due to HHKB). I used to use a bash script which invokes xmodmap at startup, but this method is not very satisfying, because sometimes it does not work for unknown reason (about 30% of the time I have to manually execute the bash script) and it can easily be blocked by some other applications (for example, 1. fcitx by default will reset all keys to original keyboard layout, 2. after recovering from "suspend" or "sleep", the keys are also recovered to default).

So I am just wondering if there is a quick way to switch the two keys by some KDE utility? KDE keyboard setting handles the "ctrl/Caps_Lock" switch rather nicely, but I don't see options to switch other keys.

Thanks!
zariski
Registered Member
Posts
7
Karma
0
Or is there any way to find out which program changed my keybindings? Sometimes even when I manually executed the xmodmap bash script, there was some unknown application that kept reverting my keymaps to default.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
Perhaps related therefore I am posting in your thread without wanting to hijack...

Clementine does not accept pause/play, previous or next track media keys in KDE while it hasn't got these problems under a GTK environment like cinnamon.


Debian testing
User avatar
google01103
Manager
Posts
6668
Karma
25

Tue Jan 14, 2014 11:23 pm
toad wrote:Perhaps related therefore I am posting in your thread without wanting to hijack...

Clementine does not accept pause/play, previous or next track media keys in KDE while it hasn't got these problems under a GTK environment like cinnamon.


I think that's a Clementine bug http://code.google.com/p/clementine-pla ... il?id=2908


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
For the OP's issue - have you tried an alternative keyboard layout, or altering an existing one?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
zariski
Registered Member
Posts
7
Karma
0
bcooksley wrote:For the OP's issue - have you tried an alternative keyboard layout, or altering an existing one?


I am sorry. How to alter a layout? In the keyboard settings, it seems that I can only select from a list of existing layouts.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
More information on customising / writing your own keyboard layout can be found here - https://help.ubuntu.com/community/Howto ... efinitions


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
zariski
Registered Member
Posts
7
Karma
0
bcooksley wrote:More information on customising / writing your own keyboard layout can be found here - https://help.ubuntu.com/community/Howto ... efinitions



Thanks! Looks quite complicated. I guess I will just stick to my current solution: assign a shortcut to executing the bash script.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]