[BUG]: Bar not displaying transparent background #593

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

Originally created by @lenuswalker on GitHub (Apr 1, 2025).

Summary

The bar is displaying a black background behind the widgets on my laptop. The laptop is a Razer Blade 14 (2021) with an integrated AMD GPU and a dedicated Nvidia 3060 GPU. The bar renders properly on my other laptops without Optimus. This happens on both the stable release and nightly release of Komorebi.

Image

Version Information

komorebic 0.1.36
branch:master
commit_hash:30fbc1ae
build_time:2025-03-23 02:55:13 +00:00
build_env:rustc 1.85.1 (4eb161250 2025-03-15),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.35/schema.bar.json",
  "monitor": 0,
  "height": 34,
  "font_family": "JetBrains Mono",
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "accent": "Base0D"
  },
  "grouping": {
    "kind": "Widget",
    "rounding": 8,
    "style": "DefaultWithShadowB0O1S3",
    "tranperancy_alpha": 250
  },
  "transparency_alpha": 0,
  "max_label_width": 200,
  "left_widgets": [
    {
      "Komorebi": {
        "workspaces": {
          "enable": true,
          "hide_empty_workspaces": false
        },
        "workspace_layer": {
          "display": "IconAndText",
          "enable": true,
          "show_when_tiling": true
        },
        "layout": {
          "enable": false
        },
        "focused_window": {
          "display": "IconAndText",
          "enable": true
        }
      }
    }
  ],
  "center_widgets": [
    {
      "Date": {
        "enable": false,
        "format": "DayDateMonthYear",
        "label_prefix": "Icon"
      }
    },
    {
      "Time": {
        "enable": false,
        "format": "TwelveHourWithoutSeconds",
        "label_prefix": "Icon"
      }
    }
  ],
  "right_widgets": [
    {
      "Update": {
        "enable": true
      }
    },
    {
      "Media": {
        "enable": true
      }
    },
    {
      "Storage": {
        "enable": false
      }
    },
    {
      "Memory": {
        "enable": false
      }
    },
    {
      "Network": {
        "enable": true,
        "label_prefix": "Icon",
        "show_total_data_transmitted": false,
        "show_network_activity": false
      }
    },
    {
      "Battery": {
        "enable": true
      }
    },
    {
      "Date": {
        "enable": true,
        "format": "DayDateMonthYear",
        "label_prefix": "Icon"
      }
    },
    {
      "Time": {
        "enable": true,
        "format": "TwelveHourWithoutSeconds",
        "label_prefix": "Icon"
      }
    }
  ]
}

Hotkey Configuration

.shell pwsh

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 ]

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 ]
alt + shift + oem_4 : komorebic cycle-stack-index previous # oem_4 is [
alt + shift + oem_6 : komorebic cycle-stack-index 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

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
alt + oem_comma : komorebic cycle-workspace previous
alt + oem_period : komorebic cycle-workspace next

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
alt + shift + oem_comma : komorebic cycle-move-to-workspace previous
alt + shift + oem_period : komorebic cycle-move-to-workspace next

Output of komorebic check

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

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

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

Found C:\Users\lenus.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

Originally created by @lenuswalker on GitHub (Apr 1, 2025). ### Summary The bar is displaying a black background behind the widgets on my laptop. The laptop is a Razer Blade 14 (2021) with an integrated AMD GPU and a dedicated Nvidia 3060 GPU. The bar renders properly on my other laptops without Optimus. This happens on both the stable release and nightly release of Komorebi. ![Image](https://github.com/user-attachments/assets/b63a76a1-1d4a-4c5b-b67b-2a50f3aa04d1) ### Version Information komorebic 0.1.36 branch:master commit_hash:30fbc1ae build_time:2025-03-23 02:55:13 +00:00 build_env:rustc 1.85.1 (4eb161250 2025-03-15),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.35/schema.bar.json", "monitor": 0, "height": 34, "font_family": "JetBrains Mono", "theme": { "palette": "Base16", "name": "Ashes", "accent": "Base0D" }, "grouping": { "kind": "Widget", "rounding": 8, "style": "DefaultWithShadowB0O1S3", "tranperancy_alpha": 250 }, "transparency_alpha": 0, "max_label_width": 200, "left_widgets": [ { "Komorebi": { "workspaces": { "enable": true, "hide_empty_workspaces": false }, "workspace_layer": { "display": "IconAndText", "enable": true, "show_when_tiling": true }, "layout": { "enable": false }, "focused_window": { "display": "IconAndText", "enable": true } } } ], "center_widgets": [ { "Date": { "enable": false, "format": "DayDateMonthYear", "label_prefix": "Icon" } }, { "Time": { "enable": false, "format": "TwelveHourWithoutSeconds", "label_prefix": "Icon" } } ], "right_widgets": [ { "Update": { "enable": true } }, { "Media": { "enable": true } }, { "Storage": { "enable": false } }, { "Memory": { "enable": false } }, { "Network": { "enable": true, "label_prefix": "Icon", "show_total_data_transmitted": false, "show_network_activity": false } }, { "Battery": { "enable": true } }, { "Date": { "enable": true, "format": "DayDateMonthYear", "label_prefix": "Icon" } }, { "Time": { "enable": true, "format": "TwelveHourWithoutSeconds", "label_prefix": "Icon" } } ] } ``` ### Hotkey Configuration .shell pwsh # 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 ] # 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 ] alt + shift + oem_4 : komorebic cycle-stack-index previous # oem_4 is [ alt + shift + oem_6 : komorebic cycle-stack-index 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 # 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 alt + oem_comma : komorebic cycle-workspace previous alt + oem_period : komorebic cycle-workspace next # 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 alt + shift + oem_comma : komorebic cycle-move-to-workspace previous alt + shift + oem_period : komorebic cycle-move-to-workspace next ### Output of komorebic check KOMOREBI_CONFIG_HOME detected: C:\Users\lenus\.config\komorebi Looking for configuration files in C:\Users\lenus\.config\komorebi Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\lenus\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
adam added the bug label 2026-01-05 14:51:48 +01:00
adam closed this issue 2026-01-05 14:51:48 +01:00
Author
Owner

@lenuswalker commented on GitHub (Apr 1, 2025):

With the transparency alpha set to 255, this is what I get:

Image

@lenuswalker commented on GitHub (Apr 1, 2025): With the transparency alpha set to 255, this is what I get: ![Image](https://github.com/user-attachments/assets/dd5bcc96-8d2b-4fb7-968b-41b475797817)
Author
Owner

@CtByte commented on GitHub (Apr 2, 2025):

@lenuswalker I've seen issues with the transparency and here is Kislax on discord, who managed to fix it like this. I hope it helps.

From Kislax

2/28/25, 10:13 PM
Hello guys, i fixed broken transparent bar to graphic card to Nvidia.

need open control panel Nvidia
select left tree "3d params"->"3d control params"
right section application -> select to tab "program settings"
add your app -> push "add" and select "komorebi-bar"
find "compatibility with OpenGL GDI" and select "compatibility priority"
tap to "apply" in bottom app
restart your bar "komorebic stop --bar; komorebic start --bar"

Working for my only one graphic adapter - Nvidia rtx 4090, I think you will work too.
excuse me if there are mistakes in translation, I translated from my settings to my language

@CtByte commented on GitHub (Apr 2, 2025): @lenuswalker I've seen issues with the transparency and here is Kislax on [discord](https://discord.com/channels/898554690126630914/1286020373451771945/1345141736779022516), who managed to fix it like this. I hope it helps. From Kislax — 2/28/25, 10:13 PM Hello guys, i fixed broken transparent bar to graphic card to Nvidia. need open control panel Nvidia select left tree "3d params"->"3d control params" right section application -> select to tab "program settings" add your app -> push "add" and select "komorebi-bar" find "compatibility with OpenGL GDI" and select "compatibility priority" tap to "apply" in bottom app restart your bar "komorebic stop --bar; komorebic start --bar" Working for my only one graphic adapter - Nvidia rtx 4090, I think you will work too. excuse me if there are mistakes in translation, I translated from my settings to my language
Author
Owner

@lenuswalker commented on GitHub (Apr 2, 2025):

@CtByte Thank you! This seems to have done the trick. Maybe this should be added to some of the readme documents.

@lenuswalker commented on GitHub (Apr 2, 2025): @CtByte Thank you! This seems to have done the trick. Maybe this should be added to some of the readme documents.
Author
Owner

@CtByte commented on GitHub (Apr 3, 2025):

@lenuswalker I am really glad it worked, in that case it should really be added to docs.

If you are up for it (since you had first-hand experience) you can add it, else I will put this on my todo list :)

@CtByte commented on GitHub (Apr 3, 2025): @lenuswalker I am really glad it worked, in that case it should really be added to docs. If you are up for it (since you had first-hand experience) you can add it, else I will put this on my todo list :)
Author
Owner

@lenuswalker commented on GitHub (Apr 3, 2025):

@CtByte created a pull request to update docs/troubleshooting.md. I hope that this is the correct place.

@lenuswalker commented on GitHub (Apr 3, 2025): @CtByte created a pull request to update docs/troubleshooting.md. I hope that this is the correct place.
Author
Owner

@LGUG2Z commented on GitHub (Apr 3, 2025):

Merged! 🎉

@LGUG2Z commented on GitHub (Apr 3, 2025): Merged! 🎉
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#593