Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: KeePassXC isn't recognized by komorebi at all #1168

Open
dev00 opened this issue Dec 9, 2024 · 1 comment
Open

[BUG]: KeePassXC isn't recognized by komorebi at all #1168

dev00 opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dev00
Copy link

dev00 commented Dec 9, 2024

Summary

I'm using KeepassXC 2.7.9 for password management, and it somehow goes completly undetected from komorebi at all.

I ran .\komorebic.exe log, and while I can see every focus change to any windows except KeepassXC, klicking KeepassXC doesn't trigger any messages. Bringing KeepassXC into focus and using komorebic manage results in the following output:

2024-12-09T11:25:52.093504Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=330898}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-12-09T11:25:52.094570Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=330898}:focus_window{idx=0}: komorebi::container: focusing window
2024-12-09T11:25:52.095065Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=330898}:focus_container{idx=0}: komorebi::workspace: focusing container
2024-12-09T11:25:52.101053Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=330898}: komorebi::process_event: processed: (hwnd: 330898, title: Windows PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)

and the window vanishes until I click it again via task bar. The window otherwise just floats around, completly unaffected by komorebi at all.

Windows Task Manager seems to have a similar issue. but for that one I didn't run all the debug checks.

Version Information

systeminfo

PS C:\Program Files\komorebi\bin> systeminfo

Hostname:                                      myhost
Betriebssystemname:                            Microsoft Windows 11 Enterprise
Betriebssystemversion:                         10.0.22631 Nicht zutreffend Build 22631

komorebic --version

PS C:\Program Files\komorebi\bin> komorebic --version
komorebic 0.1.30
tag:v0.1.30
commit_hash:9a3dbccc
build_time:2024-11-03 23:49:52 +00:00
build_env:rustc 1.82.0 (f6e511eec 2024-10-15),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.30/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 5,
  "default_container_padding": 5,
  "border": true,
  "border_width": 2,
  "border_offset": -1,
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "unfocused_border": "Base03",
    "bar_accent": "Base0D"
  },
  "stackbar": {
    "height": 40,
    "mode": "OnStack",
    "tabs": {
      "width": 300
    }
  },
  "monitors": [
    {
      "workspaces": [
        {
          "name": "prod",
          "layout": "BSP"
        },
        {
          "name": "tools",
          "layout": "VerticalStack"
        },
        {
          "name": "colab",
          "layout": "HorizontalStack"
        },
        {
          "name": "chat",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "V",
          "layout": "Rows"
        },
        {
          "name": "VI",
          "layout": "Grid"
        },
        {
          "name": "VII",
          "layout": "RightMainVerticalStack"
        }
      ]
    }
  ]
}

Hotkey Configuration

.shell powershell

# Reload whkd configuration
# alt + o                 : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd
alt + o                 : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o         : komorebic reload-configuration

# App shortcuts - these require shell to be pwsh / powershell
# The apps will be focused if open, or launched if not open
# alt + f                 : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }
# alt + b                 : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }

alt + q                 : komorebic close
alt + m                 : komorebic minimize
q
# Focus windows
alt + h                 : komorebic focus left
alt + j                 : komorebic focus down
alt + k                 : komorebic focus up
alt + l                 : komorebic focus right
alt + shift + oem_4     : komorebic cycle-focus previous # oem_4 is [
alt + shift + oem_6     : komorebic cycle-focus next # oem_6 is ]

# Move windows
alt + shift + h         : komorebic move left
alt + shift + j         : komorebic move down
alt + shift + k         : komorebic move up
alt + shift + l         : komorebic move right
alt + shift + return    : komorebic promote

# Stack windows
alt + left              : komorebic stack left
alt + down              : komorebic stack down
alt + up                : komorebic stack up
alt + right             : komorebic stack right
alt + oem_1             : komorebic unstack # oem_1 is ;
alt + oem_4             : komorebic cycle-stack previous # oem_4 is [
alt + oem_6             : komorebic cycle-stack next # oem_6 is ]

# Resize
alt + oem_plus          : komorebic resize-axis horizontal increase
alt + oem_minus         : komorebic resize-axis horizontal decrease
alt + shift + oem_plus  : komorebic resize-axis vertical increase
alt + shift + oem_minus : komorebic resize-axis vertical decrease

# Manipulate windows
alt + t                 : komorebic toggle-float
alt + shift + f         : komorebic toggle-monocle

# Window manager options
alt + shift + r         : komorebic retile
alt + p                 : komorebic toggle-pause
alt + m                 : komorebic manage
# Layouts
alt + x                 : komorebic flip-layout horizontal
alt + y                 : komorebic flip-layout vertical

# 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

# 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

PS C:\Program Files\komorebi\bin> komorebic check
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\dev00

Looking for configuration files in C:\Users\dev00

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\dev00\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
@dev00 dev00 added the bug Something isn't working label Dec 9, 2024
@LGUG2Z
Copy link
Owner

LGUG2Z commented Dec 9, 2024

Keypass has been investigated before and the conclusion was that the maintainers of that app need to make changes to bring their app in line with how apps on Windows are expected to behave (more detail here: https://discord.com/channels/898554690126630914/898554690608967786/1271322563133575201)

RE: task manager, elevated windows cannot be managed by an unelevated process, and though some people do run komorebi as an elevated process, I advise against it and consider any ensuing weirdness UB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants