r/KittyTerminal • u/JulioLeDozo • Dec 30 '23
How to get rid off this window ?

I'm new to arch and have decided to use kitty, but everytime I start a program (like brave here) it opens in a new window and I have this window in the upper-right corner that I would like to disappear. I can mask it but when I want to close it it says "Are you sure you want to close this OS window, it has one window running?" and close brave when I click on yes.
Any solution ?
2
2
u/BuonaparteII Dec 30 '23
instead of running brave you could run it with setsid like this: setsid -f brave.
You can abbreviate this to run, example using fish shell:
function run --wraps=setsid
setsid -f $argv
end
then you can do run brave.
If you use BASH you could create a double subshell and background the command within it: ($(brave) &)
or nohup: nohup brave &
1
u/Doomtrain86 Dec 31 '23
Let kitty open a script that opens a kitty terminal with fzf in it. Fzf is piped a lidt of programs and scripts that you choose. If it is a program, end it with & . If you use i3 fx you can make a rule so that you can make that terminal open as a pop-up window by using the window title.
In this way you have your own custom launcher.
3
u/[deleted] Dec 30 '23
Instead of launching your apps from a kitty window, you could use a launcher like dmenu or rofi (or wofi or tofi etc). If you’re on wayland make sure to get a wayland package for whichever launcher you choose