-
-
Notifications
You must be signed in to change notification settings - Fork 971
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 --background option to run kitty on the Wayland desktop #2590
Conversation
It's a cool idea, I really like it, however, I dont want to add unstable Wayland protocols to kitty. If and when this protocol makes it to wayland-protocols so that kitty does not need to carry around definitions of the protocol in its source code, I will be happy to merge. |
853a29c
to
12b0159
Compare
12b0159
to
16c09e8
Compare
I respect your choice, |
f420cd1
to
ccd0a20
Compare
--background-monitor can be used to specify exactly which monitor to run kitty on.
ccd0a20
to
258b268
Compare
644357a
to
65c7ecb
Compare
f5a18f5
to
2bb42e6
Compare
Please finish this thing, we are waiting. |
Go ask the maintainers of wayland-protocols to merge the protocol then. I was very clear as to what conditions were required for this PR to land. |
This is now implemented in master. Tested with sway, Hyprland and kwin. Run
to have kitty render the background. Remember to disable any bg in your sway config otherwise it hides the panel background. |
Can panel be brought to macOS? I'd like htop or btop running on my desktop. |
No, macOS doesnt support this kind of thing as far as I know. |
https://stackoverflow.com/a/4982619/592739
|
On Sat, Apr 13, 2024 at 03:29:57PM -0700, Pierre Houston wrote:
https://stackoverflow.com/a/4982619/592739
That's not the same thing, for example the window can still grab
keyboard focus. It will participate in alt-tab window switching, etc.
|
Are you sure you aren’t confusing platforms? I ask because you mention alt-tab window switching whereas of course macOS uses command-tab app switching. I spoke with the author of the Mac app Particulars, which, in one mode, puts a transparent chromeless window of information on the desktop like it seems this feature currently does on Linux. FWIW, in its configuration option I use, this app does remove itself from command-tab switching, although I’m not saying kitty needs to do that as, again, this OS feature switches between apps rather than windows. A running app being frontmost with no active aka key window is a-ok. Here’s the information he sent me about how his app does this using above-board system APIs, over and above the tips in the stack overflow answer I linked to above:
In any case, looking more into this kitten and how background is implemented (with no sizing or positioning on the desktop supported), I think I’ll instead search for another open source terminal app to contribute to and try to get this feature in. Thanks anyway, |
This PR adds the
--background
argument to kitty. When specified, the kitty window runs behind all other windows, effectively making it the desktop background. This uses thezwlr_layer_shell_v1
Wayland protocol.This is useful for using CLI applications as the desktop wallpaper. For example,
kitty --background htop
can be used to showhtop
as the desktop background.It can be used to create interesting effects, like running
cava
on the desktop to visualize music in the background: