mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: komorebic handles actions for the fullscreen window instead of the focused one #551
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 @danteasy on GitHub (Dec 30, 2024).
Summary
If a fullscreen window is open beneath a focused floating window (or a tiled window), komorebic handles actions for the fullscreen window instead of the focused one.
https://github.com/user-attachments/assets/0c2fdab1-05d9-44ea-bf59-cc07ffe2ab4b
Version Information
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
komorebic 0.1.31
tag:v0.1.31
commit_hash:40c55dec
build_time:2024-12-14 00:54:06 +00:00
build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc
Komorebi Configuration
Hotkey Configuration
.shell powershell
alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o : komorebic reload-configuration
alt + v : komorebic minimize
Focus windows
alt + a : komorebic focus left
alt + s : komorebic focus down
alt + w : komorebic focus up
alt + d : komorebic focus right
Move windows
alt + shift + a : komorebic move left
alt + shift + s : komorebic move down
alt + shift + w : komorebic move up
alt + shift + d : komorebic move right
alt + shift + return : komorebic promote
Resize
alt + e : komorebic resize-axis horizontal increase
alt + q : komorebic resize-axis horizontal decrease
alt + shift + e : komorebic resize-axis vertical increase
alt + shift + q : komorebic resize-axis vertical decrease
Manipulate windows
alt + shift + f : komorebic toggle-float
alt + f : komorebic toggle-maximize
Window manager options
alt + shift + r : komorebic retile
alt + shift + p : komorebic toggle-pause
Layouts
alt + c : komorebic flip-layout horizontal
alt + shift + c : komorebic flip-layout vertical
alt + z : komorebic change-layout bsp
alt + shift + z : komorebic change-layout grid
alt + x : komorebic change-layout horizontal-stack
Workspaces
alt + 1 : komorebic focus-workspace 0
alt + 2 : komorebic focus-workspace 1
alt + 3 : komorebic focus-workspace 2
alt + 4 : komorebic focus-workspace 3
alt + 5 : komorebic focus-workspace 4
alt + 6 : komorebic focus-workspace 5
alt + 7 : komorebic focus-workspace 6
alt + 8 : komorebic focus-workspace 7
alt + r : komorebic focus-last-workspace
Move windows across workspaces
alt + shift + 1 : komorebic move-to-workspace 0
alt + shift + 2 : komorebic move-to-workspace 1
alt + shift + 3 : komorebic move-to-workspace 2
alt + shift + 4 : komorebic move-to-workspace 3
alt + shift + 5 : komorebic move-to-workspace 4
alt + shift + 6 : komorebic move-to-workspace 5
alt + shift + 7 : komorebic move-to-workspace 6
alt + shift + 8 : komorebic move-to-workspace 7
Output of komorebic check
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Yevhenii
Looking for configuration files in C:\Users\Yevhenii
Found komorebi.json; this file can be passed to the start command with the --config flag
The "Hide" option for "window_hiding_behaviour" is deprecated and can be removed or replaced with "Cloak"
Found C:\Users\Yevhenii.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
@LGUG2Z commented on GitHub (Dec 30, 2024):
From what I saw in the video, it looks like you have one app toggled to fullscreen, then you want to toggle another one to full screen?
If so, only one app can be toggled to full screen at a time; you'll need to toggle off full screen on the first app before you can set it on the second app. This behaviour isn't going to be changed.
@danteasy commented on GitHub (Dec 30, 2024):
Yes, that is exactly what I wanted to achieve. But that isn't the main issue. The full-screen window takes in all of the shortcuts I send to the floating one.
@LGUG2Z commented on GitHub (Dec 30, 2024):
Can you type out the commands and shortcuts you're trying to send in the video? I've watched a few times and it's not very clear for me to follow along.
@danteasy commented on GitHub (Dec 30, 2024):
I had two tiled windows open. Then, I switched the browser to fullscreen, shifted focus to the terminal, and attempted to resize it. However, Komorebic applied the resizing commands to the fullscreen browser instead. I tried another thing: made the browser fullscreen, focused on the terminal, and attempted to make it float. But this time, the browser ended up being floated instead of the terminal.
Hotkeys:
alt + f : komorebic toggle-maximize
alt + shift + f : komorebic toggle-float
alt + e : komorebic resize-axis horizontal increase
alt + q : komorebic resize-axis horizontal decrease
alt + shift + e : komorebic resize-axis vertical increase
alt + shift + q : komorebic resize-axis vertical decrease
https://github.com/user-attachments/assets/3f56e83b-47b7-42a2-89f1-6037a9fb4052
@LGUG2Z commented on GitHub (Dec 30, 2024):
With this new info, I can say that this is all expected behaviour.
fullscreenandmonocleare exclusive modes that are toggled on and off inkomorebi- regardless of whether you alt-tab a different window to the foreground, while one of those modes is toggled, the the fullscreen or monocle window will always be considered the target window on a workspace for commands which don't explicitly identify containers or windows via indices or other matchers.This is a long standing behaviour for almost half a decade now which will almost certainly never be changed.