-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add blur, shadow, and corner radius to layer-shell surfaces #144
Conversation
ceb85c8
to
d4e8038
Compare
Other than that and the discussion todos, this should be ready Edit: I added support for shadows and it works really well so let me know if it's something better suited for a separate PR |
1b7a71f
to
e5a79fc
Compare
Seems like moving the shadows into |
7b0acbe
to
0fbd5c3
Compare
802c4d0
to
9bf5ab7
Compare
Better checks if the layer surface is a subsurface or not and only renders the shadows in the render_surface_iterator if said pointer isn't NULL
Now supports commands like these: ``` layer_effects "waybar" { blur enable; shadows disable; corner_radius 6; } ``` Also now able to override previous criterias and add criterias during runtime
Will need a hefty rebase with #155 merged |
I'm on it! o7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions / comments
Rebased + made some changes so we aren't rendering shadows in the surface iterator, and some minor refactors |
We do lose xray for layer shell popups here, but if they're really needed we can look into returning that functionality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to look into, but otherwise looks good! I won't have capacity to look into it until this evening
Co-authored-by: Will McKinnon <contact@willmckinnon.com>
Adds border radius and blur to layer-shell surfaces (not background and bottom layers).
Requires #157
Todo:
Command to add layer namespace with effects
Handle blur
Handle shadow
Handle corner radius
Add layer-effect checking in
get_workspace_effect_info
Change config command syntax to match
for_window
Add method of viewing all layer namespaces in sway-ipc
Make the command syntax similar to
for_window
Code cleanup (change the config syntax?)
Disable blur xray for bottom layer surfaces
Example command:
layer_effects "waybar" blur enable; shadows enable; corner_radius 6