Closed josswright closed 1 month ago
This is a wayland limitation, with their usual security theatre excuse for removing useful functionality.
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/116
Ugh. Thanks for replying! Looks like, as of this comment, it's still being actively debated by people wanting fullscreen transparent terminals, so here's hoping that it can be resolved sensibly.
Just to add, in case anyone else stumbles across this, two potential workarounds for a specific, fullscreen terminal. (I use thits for focused writing.)
Tinted background image:
kitty --start-as=fullscreen -o background_tint=0.9 -o background_image_layout=cscaled -o background_image=<path_to_background_png>
Alternatively, switch to an empty workspace and hide the bar, so you get effective fullscreen for that terminal. If you use waybar
under sway
, you can toggle hiding it with a kill -SIGUSR1
:
killall -SIGUSR1 waybar
kitty
killall -SIGUSR1 waybar
Both are just minor hacks with annoyances, so I hope that the fundamental wayland issue will be resolved, but for my usage the second is just about working for now.
Describe the bug I am running kitty under sway with background_opacity set to 0.9, and a background defined in sway's config file: via `output "*" bg " fill'.
The opacity setting works perfectly until I make kitty fullscreen, either by keyboard shortcut or by startup options. I originally noticed this when I tried to run kitty with its
--start-as fullscreen
option.When I exit fullscreen, then background opacity works as before.
I saw in another issue that there's something strange about how sway sets its background image, so maybe this is related?
To Reproduce Steps to reproduce the behavior:
-o background_opacity=0.8
in sway with a background set, then maximise (either by sway's keyboard shortcut, or kitty's.)kitty --start-as fullscreen -o background_opacity=0.8
.The background of the kitty window will be solid background colour.
Environment details
Additional context (Behavoiur is reproduced with
kitty --config NONE -o background_opacity=0.8
.)My terminal theme is set via Tinted Theming both for kitty directly, and for zsh via a base16 shell script, so I don't think that this will be due to an interaction with the background colour as mentioned in comments about
background_opacity
in kitty's default config file.