KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
523 stars 16 forks source link

Can you remove the background-blur? #81

Open Acisama opened 3 months ago

Acisama commented 3 months ago

I have an eww-bar and I can space it so the overview is below the bar, but the bar gets blured and I found no way to not have it blur the background.

KZDKM commented 2 months ago

Currently this is not an option, I will add this later.

myamusashi commented 2 months ago

image

Is this what you expected or no?

Acisama commented 2 months ago

Thanks, that was exactly it!

zstg commented 1 month ago

image

Is this what you expected or no?

Do you mind showing how to obtain transparency?

myamusashi commented 1 month ago

image Is this what you expected or no?

Do you mind showing how to obtain transparency?

I simply edited renderRectWithBlur in Render.cpp

zstg commented 1 month ago

Hmm, I tried building it with yours and it didn't work. I'll send a pic of my bar and my config when I can.

myamusashi commented 1 month ago

You can see my fork or just instal it with hyprpm

zstg commented 1 month ago

I am using your fork (installed it via Hyprpm, and I updated as I'm typing this). Here's the relevant plugin config:

    overview {
       enabled = true
       # panelColor = rgba(292f3aff)
       workspaceActiveBorder = rgb(5c64f1)
       # workspaceInactiveBorder = rgb(769ff0)
       # reservedArea = -1
       workspaceMargin = 20
       panelBorderRadius = 200
       autoDrag = 1
       centerAligned = 1
       # onBottom = 1
       drawActiveWorkspace = 1
       exitOnClick = 1
       switchOnDrop = 1
       adaptiveHeight = 1
       exitOnSwitch = 1
       showNewWorkspace = 0
       showEmptyWorkspace = 1
       dragAlpha = 0.5
       panelHeight = 130
       # hideBackgroundLayers = 1
       hideTopLayers = 1
       hideOverlayLayers = 1
       hideRealLayers = 1
       affectStruct = 1 
       disableGestures = 1
  }

panelColor, when unspecified or not, gives me a black background as shown here. Apologies for the poor image quality, I couldn't take a screenshot and so ended up snapping a pic on my phone.. image

If this was indeed transparent Waybar should show up like so: image, but it does not. In case I need to share something more substantial @myamusashi let me know and I could contact you via Discord.

zstg commented 1 month ago

Setting the colour to rgba(2923aff) works just fine, the desired colour shows up with full opacity. Setting the alpha to 00 simply renders the above black screen...

Clearly rgba(41, 47, 58, 0) should give me a transparent output, but setting it gives me said black screen.

Setting another colour like rgb(97,175,239) works just fine

myamusashi commented 1 month ago

Add disableBlur = true/false.

dragAlpha                   = 0.5
panelColor                  = rgba(14, 20, 25, 0.8)
panelBorderColor            = rgb(243, 139, 168)
disableBlur                 = true
zstg commented 1 month ago

Thanks! Configuring waybar on the bottom layer made it work.