LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2014, 01:45 AM   #1
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Rep: Reputation: 0
Question Switching the keyboard layout on window switch


I'd like to have a particular keyboard layout activated every time I switch a window (or an application). So that I don't have to look at the layout icon to know the current layout.
I can set a hotkey for a particular layout switch in KDE. Still, I have to activate this hotkey somehow. How can it be done?

Last edited by Lixt; 09-15-2014 at 05:50 AM.
 
Old 09-15-2014, 12:23 PM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,138

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by Lixt View Post
I'd like to have a particular keyboard layout activated every time I switch a window (or an application).
I'm not quite sure what you want to do here. Do you mean that you want to have one application using Latin and another Cyrillic by default? If you do, then it can't be done, as far as I know.

What you can do with multiple drivers is chose whether changing a keyboard affects (a) everything, (b) only the current program, or (c) only the current window.
 
Old 09-15-2014, 01:08 PM   #3
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
DavidMcCann, no I'd like the Latin layout to be activated on every window (or app) switch. So that I knew that if I swith a window the layout would be Latin and I don't have to look at the tray icon to check the layout. I think it could save me some time.
 
Old 09-15-2014, 01:27 PM   #4
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
The point is, pressing a key to shift to Cyrillic layout (if needed) should be a simpler task then checking the current layout in the tray (because I often forget what the current layout is).
 
Old 09-16-2014, 10:25 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,138

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Then what you need is Latin set as default and what I called option (c). That way, even if you've just switched to Cyrillic, the next program started (or even a new window in the same program) will revert to Latin.
 
Old 09-16-2014, 10:40 AM   #6
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
I'm sorry, I don't get it. Should the installation of another keyboard driver solve the problem?

I guess there should be a software that is able to send a key combination every time the window in focus switches. But I'm still to find it's name.
 
Old 09-17-2014, 10:47 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,138

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by Lixt View Post
I'm sorry, I don't get it.
The same here! It seems that either I'm not understanding you, or you're not understanding me, or both.
 
Old 09-17-2014, 11:14 AM   #8
Lixt
Member
 
Registered: Oct 2011
Location: Russia
Distribution: Debian 11, amd64, KDE
Posts: 43

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DavidMcCann View Post
The same here! It seems that either I'm not understanding you, or you're not understanding me, or both.
OK, I'll try to put it in other words. KDE can switch to the default layout on pressing say Left Ctrl + Left Meta combination. Now, I only need a software which can send this combination (Left Ctrl + Left Meta) every time a window in focus is changed.

Last edited by Lixt; 09-17-2014 at 11:15 AM.
 
Old 09-18-2014, 10:37 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,138

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I don't think that such a program would be easy to write, as it would have to keep track of the activities of KDE. I've just searched SourceForge and I can't see anything like it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 06:43 PM
Keyboard layout switching problems OpossumPetya SUSE / openSUSE 1 01-01-2006 05:33 PM
Keyboard layout switching in KDE kornerr Linux - General 2 02-04-2005 09:16 AM
keyboard layout is switching goestin Linux - General 0 11-23-2004 09:38 AM
Switching to a Dvorak keyboard layout. ImAfrEaK Linux - Newbie 1 03-29-2004 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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