[BUG]: Bar : Widgets not working correctly #525

Closed
opened 2026-01-05 14:51:17 +01:00 by adam · 3 comments
Owner

Originally created by @ECon65 on GitHub (Nov 20, 2024).

Summary

Issue 1: Workspace widget hides workspaces with only floating application

  • Workspace widget is configured to hide empty workspaces.
  • If the workspace contains only applications which are set in floating_applications rules then this workspace is hidden in the bar.
  • Floating applications are supposed to be managed by komorebi (they are not ignored) as such workspace containing them should be visible.

Issue 2: Configuration widget is not visible at all after upgrade to v0.1.30

  • two komorebi configuration files are created and present in config home
  • configuration was working on previous release v0.1.29

Version Information

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:KOMOREBI_CONFIG_HOME/applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 10,
  "default_container_padding": 10,
  "border": true,
  "border_width": 6,
  "border_offset": -1,
  "theme": {
    "palette": "Catppuccin",
    "name": "Frappe",
    "bar_accent": "Blue"
  },
  "transparency": true,
  "transparency_alpha": 220,
  "stackbar": {
    "height": 30,
    "mode": "Never",
    "label": "Title",
    "tabs": {
      "width": 300,
      "font_size": 16
    }
  },
  "bar_configurations": [
    "$Env:KOMOREBI_CONFIG_HOME/home.bar0.json",
    "$Env:KOMOREBI_CONFIG_HOME/home.bar1.json"
  ],
  "display_index_preferences": {
    "0": "DELA097-5&157af47b&0&UID262",
    "1": "DELA05F-5&157af47b&0&UID261"
  },
  "monitor_index_preferences": {
    "0": {
      "left": 0,
      "top": 0,
      "right": 1920,
      "bottom": 1080
    },
    "1": {
      "left": 1920,
      "top": 0,
      "right": 1920,
      "bottom": 1080
    }
  },
  "monitors": [
    {
      "window_based_work_area_offset_limit": 1,
      "window_based_work_area_offset": {
        "left": 100,
        "top": 0,
        "right": 200,
        "bottom": 0
      },
      "workspaces": [
        {
          "name": "1",
          "layout": "RightMainVerticalStack"
        },
        {
          "name": "2",
          "layout": "RightMainVerticalStack"
        },
        {
          "name": "3",
          "layout": "RightMainVerticalStack"
        },
        {
          "name": "4",
          "layout": "RightMainVerticalStack",
          "initial_workspace_rules": [
            {
              "kind": "Exe",
              "matching_strategy": "Equals",
              "id": "msedge.exe"
            }
          ]
        }
      ]
    },
    {
      "window_based_work_area_offset_limit": 1,
      "window_based_work_area_offset": {
        "left": 100,
        "top": 0,
        "right": 200,
        "bottom": 0
      },
      "workspaces": [
        {
          "name": "email",
          "layout": "VerticalStack"
        },
        {
          "name": "chat",
          "layout": "VerticalStack"
        },
        {
          "name": "web",
          "layout": "VerticalStack",
          "initial_workspace_rules": [
            {
              "kind": "Exe",
              "matching_strategy": "Equals",
              "id": "firefox.exe"
            }
          ]
        },
        {
          "name": "work",
          "layout": "VerticalStack",
          "initial_workspace_rules": [
            {
              "kind": "Exe",
              "matching_strategy": "Equals",
              "id": "Code.exe"
            }
          ]
        }
      ]
    }
  ],
  "tray_and_multi_window_applications": [
    {
      "kind": "Exe",
      "id": "KeePass.exe",
      "matching_strategy": "Equals"
    }
  ],
  "floating_applications": [
    {
      "kind": "Exe",
      "id": "KeePass.exe",
      "matching_strategy": "Equals"
    }
  ],
  "manage_rules": [
  ],
  "ignore_rules": [
  ]
}





{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.30/schema.bar.json",
  "monitor": {
    "index": 0,
    "work_area_offset": {
      "left": 0,
      "top": 40,
      "right": 0,
      "bottom": 40
    }
  },
  "position": {
    "start": {
      "x": 0,
      "y": 0
    },
    "end": {
      "x": 1920,
      "y": 38
    }
  },
  "font_family": "JetBrainsMono NFM Regular",
  "font_size": 14,
  "left_widgets": [
    {
      "Komorebi": {
        "workspaces": {
          "enable": true,
          "hide_empty_workspaces": true
        },
        "layout": {
          "enable": false
        },
        "focused_window": {
          "enable": true,
          "show_icon": true
        },
        "configuration_switcher": {
          "enable": true,
          "configurations": {
            "home": "$Env:KOMOREBI_CONFIG_HOME/home.json",
            "laptop": "$Env:KOMOREBI_CONFIG_HOME/laptop.json"
          }
        }
      }
    }
  ],
  "right_widgets": [
    {
      "Media": {
        "enable": true
      }
    },
    {
      "Storage": {
        "enable": true
      }
    },
    {
      "Memory": {
        "enable": true
      }
    },
    {
      "Date": {
        "enable": true,
        "format": "DayDateMonthYear"
      }
    },
    {
      "Time": {
        "enable": true,
        "format": "TwentyFourHour"
      }
    },
    {
      "Battery": {
        "enable": true
      }
    }
  ]
}

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

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 ]

Focus monitor

alt + oem_comma : komorebic cycle-monitor previous
alt + oem_period : komorebic cycle-monitor next

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
alt + n : komorebic cycle-send-to-monitor next
alt + shift + n : komorebic cycle-send-to-monitor previous

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 ]
alt + g : komorebic stack-all
alt + shift + g : komorebic unstack-all

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
alt + f : komorebic force-focus

Window manager options

alt + shift + r : komorebic retile
alt + p : komorebic toggle-pause
alt + y : 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

KOMOREBI_CONFIG_HOME detected: C:\Users\user\.config\komorebi

Looking for configuration files in C:\Users\user\.config\komorebi

No komorebi configuration found in C:\Users\user\.config\komorebi

If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration
Originally created by @ECon65 on GitHub (Nov 20, 2024). ### Summary Issue 1: Workspace widget hides workspaces with only floating application - Workspace widget is configured to hide empty workspaces. - If the workspace contains only applications which are set in floating_applications rules then this workspace is hidden in the bar. - Floating applications are supposed to be managed by komorebi (they are not ignored) as such workspace containing them should be visible. Issue 2: Configuration widget is not visible at all after upgrade to v0.1.30 - two komorebi configuration files are created and present in config home - configuration was working on previous release v0.1.29 ### Version Information ``` 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 ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.30/schema.json", "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 10, "default_container_padding": 10, "border": true, "border_width": 6, "border_offset": -1, "theme": { "palette": "Catppuccin", "name": "Frappe", "bar_accent": "Blue" }, "transparency": true, "transparency_alpha": 220, "stackbar": { "height": 30, "mode": "Never", "label": "Title", "tabs": { "width": 300, "font_size": 16 } }, "bar_configurations": [ "$Env:KOMOREBI_CONFIG_HOME/home.bar0.json", "$Env:KOMOREBI_CONFIG_HOME/home.bar1.json" ], "display_index_preferences": { "0": "DELA097-5&157af47b&0&UID262", "1": "DELA05F-5&157af47b&0&UID261" }, "monitor_index_preferences": { "0": { "left": 0, "top": 0, "right": 1920, "bottom": 1080 }, "1": { "left": 1920, "top": 0, "right": 1920, "bottom": 1080 } }, "monitors": [ { "window_based_work_area_offset_limit": 1, "window_based_work_area_offset": { "left": 100, "top": 0, "right": 200, "bottom": 0 }, "workspaces": [ { "name": "1", "layout": "RightMainVerticalStack" }, { "name": "2", "layout": "RightMainVerticalStack" }, { "name": "3", "layout": "RightMainVerticalStack" }, { "name": "4", "layout": "RightMainVerticalStack", "initial_workspace_rules": [ { "kind": "Exe", "matching_strategy": "Equals", "id": "msedge.exe" } ] } ] }, { "window_based_work_area_offset_limit": 1, "window_based_work_area_offset": { "left": 100, "top": 0, "right": 200, "bottom": 0 }, "workspaces": [ { "name": "email", "layout": "VerticalStack" }, { "name": "chat", "layout": "VerticalStack" }, { "name": "web", "layout": "VerticalStack", "initial_workspace_rules": [ { "kind": "Exe", "matching_strategy": "Equals", "id": "firefox.exe" } ] }, { "name": "work", "layout": "VerticalStack", "initial_workspace_rules": [ { "kind": "Exe", "matching_strategy": "Equals", "id": "Code.exe" } ] } ] } ], "tray_and_multi_window_applications": [ { "kind": "Exe", "id": "KeePass.exe", "matching_strategy": "Equals" } ], "floating_applications": [ { "kind": "Exe", "id": "KeePass.exe", "matching_strategy": "Equals" } ], "manage_rules": [ ], "ignore_rules": [ ] } { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.30/schema.bar.json", "monitor": { "index": 0, "work_area_offset": { "left": 0, "top": 40, "right": 0, "bottom": 40 } }, "position": { "start": { "x": 0, "y": 0 }, "end": { "x": 1920, "y": 38 } }, "font_family": "JetBrainsMono NFM Regular", "font_size": 14, "left_widgets": [ { "Komorebi": { "workspaces": { "enable": true, "hide_empty_workspaces": true }, "layout": { "enable": false }, "focused_window": { "enable": true, "show_icon": true }, "configuration_switcher": { "enable": true, "configurations": { "home": "$Env:KOMOREBI_CONFIG_HOME/home.json", "laptop": "$Env:KOMOREBI_CONFIG_HOME/laptop.json" } } } } ], "right_widgets": [ { "Media": { "enable": true } }, { "Storage": { "enable": true } }, { "Memory": { "enable": true } }, { "Date": { "enable": true, "format": "DayDateMonthYear" } }, { "Time": { "enable": true, "format": "TwentyFourHour" } }, { "Battery": { "enable": true } } ] } ``` ### 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 # 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 ] # Focus monitor alt + oem_comma : komorebic cycle-monitor previous alt + oem_period : komorebic cycle-monitor next # 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 alt + n : komorebic cycle-send-to-monitor next alt + shift + n : komorebic cycle-send-to-monitor previous # 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 ] alt + g : komorebic stack-all alt + shift + g : komorebic unstack-all # 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 alt + f : komorebic force-focus # Window manager options alt + shift + r : komorebic retile alt + p : komorebic toggle-pause alt + y : 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 ``` KOMOREBI_CONFIG_HOME detected: C:\Users\user\.config\komorebi Looking for configuration files in C:\Users\user\.config\komorebi No komorebi configuration found in C:\Users\user\.config\komorebi If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration ```
adam added the bugi-will-probably-work-on-thiskomorebi-bar labels 2026-01-05 14:51:17 +01:00
adam closed this issue 2026-01-05 14:51:17 +01:00
Author
Owner

@ECon65 commented on GitHub (Dec 22, 2024):

issue with configuration switcher can be resolved by replacing
"home": "$Env:KOMOREBI_CONFIG_HOME/home.json",
with exact path like
"home": "C:/Users/user/.config/komorebi/home.json",

so it seems tat the bar.json doesn't accept the env variable.
I've verified that env variable is created and set to correct path so that is not the issue.

@ECon65 commented on GitHub (Dec 22, 2024): issue with configuration switcher can be resolved by replacing "home": "$Env:KOMOREBI_CONFIG_HOME/home.json", with exact path like "home": "C:/Users/user/.config/komorebi/home.json", so it seems tat the bar.json doesn't accept the env variable. I've verified that env variable is created and set to correct path so that is not the issue.
Author
Owner

@ECon65 commented on GitHub (Dec 22, 2024):

I've tried also using default configuration files for both the komorebi.json and komorebi.bar.json just adding the configuration switcher widget and still the issue persist when the path is set using env variable.

@ECon65 commented on GitHub (Dec 22, 2024): I've tried also using default configuration files for both the komorebi.json and komorebi.bar.json just adding the configuration switcher widget and still the issue persist when the path is set using env variable.
Author
Owner

@LGUG2Z commented on GitHub (Jan 23, 2025):

@CtByte do you wanna try and add in support for the KOMOREBI_CONFIG_HOME env var here?

@LGUG2Z commented on GitHub (Jan 23, 2025): @CtByte do you wanna try and add in support for the KOMOREBI_CONFIG_HOME env var here?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#525