LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2020, 12:35 PM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
Question switching focus between monitors


I have 2 displays on my PC - several apps are opened, but 2 are maximized on 2 monitors.

Since I mostly use the keyboard, it's annoying to have to grab the mouse to switch the focus from 1 window to another.

Is there a shortcut I could use to switch the focus to "maximized window" on display 2 if focus is somewhere in display 1 and vice versa?


I saw this thread:
https://askubuntu.com/questions/5278...witch-displays
linked to:
https://github.com/Eitol/screen_focus_changer
but, i can't find "11-xserver-utils" on my arch based linux, hence i can't use this git app.

Is there soln for me ? i am using endeavouros linux plasma.

If someone thinking "alt+tab" can do the trick, i will let this below to reply him

"I want to switch displays in dual-monitor setup, not windows. I have multiple applications open, and I don't want to press alt-tab a lot of times until I reach the one on the other display"
 
Old 10-31-2020, 01:16 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,971

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
that should be x11-xerver-utils, probably you missed an x at the beginning.
from the other hand it may depend on the window manager you have, probably there is a shortcut to switch focus.
xdotool looks promising: https://stackoverflow.com/questions/...w-to-change-it
Also you may try to look for window title or process id (to identify the window you need).
 
Old 10-31-2020, 03:18 PM   #3
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Cool

Just waant to say i have got it to work.

*need to check "Separate screen focus" option first
System settings → Window behavior → Focus tab → Multiscreen behavior: → Separate screen focus [v]

then add shortcut to these 2 features:
"Switch to Next Screen" = ctrl + alt + up
"switch to previous screen" = ctrl + alt + down

**note: this only good if you don't need to switch mouse focus on different monitor. good for keyboard user.
 
Old 11-01-2020, 03:26 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,971

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
in that case please mark the thread solved.
 
Old 11-03-2020, 03:03 PM   #5
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
in that case please mark the thread solved.
where is the "solve" button ?
 
Old 11-04-2020, 01:04 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,971

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
upper right corner, look for thread tools first.
 
  


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
Focus, Sloppy Focus, Autoraise or simply ClickToFocus? Xeratul Linux - Desktop 7 07-06-2017 09:30 PM
[SOLVED] Focus Problem with Dual Monitors when Launching Program with Bash script rrrssssss Programming 1 12-01-2009 05:42 AM
Focus on Click or anything else besides Focus on mouse. mellor Linux - Newbie 2 05-29-2008 11:31 AM
Compiz - with Dual Monitors - screen focus NoStop Linux - Desktop 0 01-16-2008 09:47 AM
Regularly switching between monitors ianunderwood SUSE / openSUSE 2 08-04-2005 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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