mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Support for switching to the next/previous monitor regardless of an application being open on it #292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dbaxa on GitHub (Feb 7, 2024).
Is your feature request related to a problem? Please describe.
As a
awesomewmuser who is sometimes using windowsWhen I press a shortcut similar to say windows + control + k/j I would like to move to the next/prev monitor (respectively).
Describe the solution you'd like
The ability to switch which monitor & application (if an application is currently displayed on the switched to monitor) is currently in focus/use.
Describe alternatives you've considered
I tried using a combination of komorebi, yasb, & https://github.com/klesh/JigsawWM (with the following config for hotkeys in JigsawWM
). However, this doesn't work very well as keys often get stuck due to competing programs and differing window management implementations.
Additional context
I hope that I have provided sufficient information for this request. I do not that the follow focus option could be of assistance with regards to changing monitors. Additionally, by "changing monitors" I mean that the mouse is sent to a next/previous monitor & focus "follows" it.
@gazpachoking commented on GitHub (Feb 7, 2024):
Does
komorebic cycle-monitor next/previousnot do that already? You can bind that to whatever hotkey you need with whkd or autohotkey.@dbaxa commented on GitHub (Feb 8, 2024):
@gazpachoking I didn't know about
komorebic cycle-monitor next/previous. It looks like I need a combination of cycle-monitor and focus - in a direction (usually up). The follow mouse focus doesn't seem to work for this use case.@dbaxa commented on GitHub (Mar 8, 2024):
I have this mostly working, there is an issue with regards to WSL applications not playing nice with focus switches between monitors ...
Steps to reproduce
0. Have multiple monitors plugged in & have the following autohotkey script setup & running
Step 6 should end up with Gedit is back in focus but it ends up being hidden/not in focus.
@LGUG2Z commented on GitHub (Mar 8, 2024):
WSLg has not been supported for a while (they initially had a decent implementation, then they made a bunch of breaking changes, and now whatever they have results in WSLg windows not responding properly to basic Win32 window positioning API calls).
I suggest using VcXsrv (
scoop install vcxsrv), which is fully supported bykomorebiand also correctly responds to Win32 window positioning API calls.Basic setup guide:
export DISPLAY="$(ip route | awk '/^default/{print $3}'):0.0"to your shell initexport LIBGL_ALWAYS_INDIRECT=1to your shell initguiApplications=falsein$Env:USERPROFILE\.wslconfig