You are not logged in.

#1 2021-08-27 13:45:06

Freakzz
Member
Registered: 2020-12-01
Posts: 66

[SOLVED] Picom shadows don't work with awesomewm

I tried enabling shadows on awesomewm just now using picom. I set the value of shadow to true and restarted awesome. Nothing. I tinkered with the radius, color, blur and position. Restarted again. Still nothing. Am I missing something?

Last edited by Freakzz (2021-09-03 19:18:51)


Suffering from crippling rice addiction.

Offline

#2 2021-08-27 14:18:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

I set the value of shadow to true and restarted awesome. Nothing. I tinkered with the radius

What config do you edit and why do you restart awesomewm?
Shadows are done in the compositor, that's picom. That's what you have to configure and launch.
Picom doesn't respond very well to syntax errors in the config, so best try starting it in an interactive shell to whether it does start or yell an error at you.

Offline

#3 2021-08-27 14:43:48

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

What config do you edit and why do you restart awesomewm?

I edited /.config/picom.conf. I restarted awesomewm because I set picom to autostart whenever awesome boots up. I even tried killall picom and then executed the command picom in another terminal to see if it would work, but nothing did. Screenshot


Suffering from crippling rice addiction.

Offline

#4 2021-08-27 14:48:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Looks working, though (at least transparency)?
Your ~/.config/picom.conf ?

Offline

#5 2021-08-28 12:57:11

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

Looks working, though (at least transparency)?
Your ~/.config/picom.conf ?

So it seems it really is working. I confirmed this by hovering my mouse pointer over the battery widget which displays a little box with the battery percentage, and it turned out it had a shadow behind it. But that's not what I'm trying to achieve here. The shadow doesn't work on any window(browser, terminal etc.) except for whenever I hover over the widgets. Here is my config btw.


Suffering from crippling rice addiction.

Offline

#6 2021-08-28 13:17:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Where do you expect to see them? (The scrot only shows a window content)
Do you have a "beautiful.useless_gap" in your awesome config?

Offline

#7 2021-08-28 14:06:15

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

Yes I do. I expect to see them on all windows/apps.


Suffering from crippling rice addiction.

Offline

#8 2021-08-28 14:13:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Did you try to set the shadow really opaque and really … green?
Something you'd notice, eg.

shadow-radius = 1
shadow-opacity = 1
shadow-red = 0
shadow-green = 1
shadow-blue = 0

And maybe post a usable screenshot - right now this coud be a misreading of the status quo - eg. I use a very soft shadow r32/o.33 and that's barely notable over a noisy-ish wallpaper)

Offline

#9 2021-08-28 14:24:53

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

As I said earlier, I was expecting shadows to appear behind normal windows too like browser, terminal etc. but I only get them on widget "boxes" or notifications.


Suffering from crippling rice addiction.

Offline

#10 2021-08-28 14:30:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Are you rounding the window corners in picom or in awesome? (Or is it the client?)

xprop
xwininfo -all

(click the window)

Offline

#11 2021-08-28 14:33:37

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

seth wrote:

Are you rounding the window corners in picom or in awesome? (Or is it the client?)

xprop
xwininfo -all

(click the window)

The rounding happens inside the rc.lua file. Do you want the output of these two commands you told me to execute?


Suffering from crippling rice addiction.

Offline

#12 2021-08-28 14:35:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Yup. I assume the window is shaped and thus ignored by picom (though the config says otherwise)
Try to skip the rounding and see what happens.

Offline

#13 2021-08-28 14:40:04

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

seth wrote:

Yup. I assume the window is shaped and thus ignored by picom (though the config says otherwise)

output of both commands.

Try to skip the rounding and see what happens.

I commented out the code in which rounding takes place in rc.lua. Is this what you meant by skip the rounding?


Suffering from crippling rice addiction.

Offline

#14 2021-08-28 14:45:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Yes, but the alacritty window is not shaped (is this before or afer the lua update?)

Edit you could also try to empty

shadow-exclude = []

Last edited by seth (2021-08-28 14:47:28)

Offline

#15 2021-08-28 14:46:57

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

seth wrote:

Yes, but the alacritty window is not shaped (is this before or afer the lua update?)

I believe its before.

Last edited by Freakzz (2021-08-28 14:47:11)


Suffering from crippling rice addiction.

Offline

#16 2021-08-28 14:53:31

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

seth wrote:

Edit you could also try to empty

shadow-exclude = []

done. Still nothing new.


Suffering from crippling rice addiction.

Offline

#17 2021-08-28 15:05:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Last idea is if awesome ends up putting all the windows into a desktop sized container,

xwininfo -children

This will tell you the windows parent Id which you can then query

xwininfo -id 0xabcdef

Offline

#18 2021-08-28 15:09:05

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

seth wrote:

Last idea is if awesome ends up putting all the windows into a desktop sized container,

xwininfo -children

This will tell you the windows parent Id which you can then query

xwininfo -id 0xabcdef

output(alacritty)

note that i still have rounding commented out in rc.lua

Last edited by Freakzz (2021-08-28 15:09:37)


Suffering from crippling rice addiction.

Offline

#19 2021-08-28 15:41:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

Nope. Reparented but same size.
What mode is this and do you get shadows fro floating windows?

Offline

#20 2021-08-28 15:47:47

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

What mode is this

what do you mean by that?

and do you get shadows fro floating windows

I don't use floating as I have commented it out and only use tiling. The only things that have shadows are the ones I showed u above and this(just discovered)


Suffering from crippling rice addiction.

Offline

#21 2021-08-28 15:56:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

I don't use floating as I have commented it out

I'd suggest to test it nevertheless…

what do you mean by that?

awesome has a nice little icon in the top right corner that allows you to toggle the window management mode (the answer is "some tiling" and not eg. fullscreen or so)

Offline

#22 2021-08-28 16:30:14

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

seth wrote:

I don't use floating as I have commented it out

I'd suggest to test it nevertheless…

what do you mean by that?

awesome has a nice little icon in the top right corner that allows you to toggle the window management mode (the answer is "some tiling" and not eg. fullscreen or so)

gonna have to take that from /xdg/ path as i deleted it lol. Give me a moment ill edit this message


Suffering from crippling rice addiction.

Offline

#23 2021-08-29 16:35:49

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

Freakzz wrote:

gonna have to take that from /xdg/ path as i deleted it lol. Give me a moment ill edit this message

looks like I tool a little longer than just a moment lol. I didn't do what you told me to try, instead I thought of trying out ibhagwan's fork which supports rounded corners. What do you think?


Suffering from crippling rice addiction.

Offline

#24 2021-08-29 21:17:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,483

Re: [SOLVED] Picom shadows don't work with awesomewm

If you removed the rounded corners in awesome but the issue remained, that's probably not gonna help.
You should be able to float individual windows anytime, though?

Offline

#25 2021-09-03 13:43:53

Freakzz
Member
Registered: 2020-12-01
Posts: 66

Re: [SOLVED] Picom shadows don't work with awesomewm

Hey, sorry for the long delay, had some stuff to deal with. So long story short, switching to forked picom didn't do much, just as you said. As for the floating clients, I was able to re-enable floating mode and I re-disabled all rounding from rc.lua. The change wasn't big, but there definitely is one. So now, the right-click menu has a shadow. As for everything else, nothing has changed. The terminal now stays at the top left corner as I am unable to move it(since I don't use titlebars). There is also a bug(?) I believe. Even If I disable all shadows in the picom config, they still remain on things like notifications, or small boxes containing information(one two three)

Last edited by Freakzz (2021-09-03 13:45:00)


Suffering from crippling rice addiction.

Offline

Board footer

Powered by FluxBB