You are not logged in.

#1 2025-02-03 08:46:00

hikmateustad
Member
Registered: 2022-01-23
Posts: 91

Switch both keyboard and mouse focus on alt tab in multi monitor setup

[hikmateustad@archlinux ~]$ neofetch
                   -`                    hikmateustad@archlinux 
                  .o+`                   ---------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: HP Pavilion g6 Notebook PC 0884110000385910000610100 
               `+oooooo:                 Kernel: 6.12.10-zen1-1-zen 
               -+oooooo+:                Uptime: 23 mins 
             `/:-:++oooo+:               Packages: 1015 (pacman) 
            `/++++/+++++++:              Shell: bash 5.2.37 
           `/++++++++++++++:             Resolution: 1366x768, 3840x2160 
          `/+++ooooooooooooo/`           DE: Plasma 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         Theme: Breeze-Dark [GTK2], Breeze [GTK3] 
       -osssssso.      :ssssssso.        Icons: breeze-dark [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: konsole 
     /ossssssss/        +ssssooo/-       CPU: Intel i5-3210M (4) @ 3.100GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel 3rd Gen Core processor Graphics Controller 
  `+sso+:-`                 `.-/+oso:    Memory: 3511MiB / 15883MiB 
 `++:.                           `-/+/
 .`                                 `/                           
                                                                 


[hikmateustad@archlinux ~]$ 

I have a multi monitor setup which I extend to left. I open firefox on my laptop main screen and pdf document on 4k TV left screen (point is both applications need scrolling).

What happens
Suppose I have my mouse focused on my tv screen scrolling and reading pdf document. When I alt tab to firefox I get keyboard focus on browser (main laptop screen) so I can type in the address bar etc but I do not get mouse focus so that I can quickly start scrolling on firefox.

What I need
To switch both keyboard and mouse focus on alt tab across my multi monitor setup.

Thank you in advance for your time.

Offline

#2 2025-02-05 06:06:11

hikmateustad
Member
Registered: 2022-01-23
Posts: 91

Re: Switch both keyboard and mouse focus on alt tab in multi monitor setup

If I were using dwm - dynamic window manager I could use this script which does exactly what I am looking for  Warp

I am using Kwin; does anyone know of a similar script? I tried searching in vain.

Offline

Board footer

Powered by FluxBB