gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.4k stars 294 forks source link

Automatically open maximized window when launching from applications launcher #2223

Open bakai-taalaibek opened 4 months ago

bakai-taalaibek commented 4 months ago

I want tilix to open maximized. I found the command "tilix --maximize", but I am not going to open tilix from terminal. I suggest to add a checkbox in the settings that always opens tilix maximized. I think the selling point of tilix is the ability to quickly and conveniently open new terminals inside of the same window. But to fully take advantage of this feature you need to maximize your window.

If I should add some lines of text somewhere to open the window maximized, please let me know.

I used to set the number of rows and columns as very big numbers, for example 200, but this methods stopped working for some reason.

237dmitry commented 4 months ago

but I am not going to open tilix from terminal

If you open tilix using a desktop file from the menu, add --maximize to the Exec entry of this file.

cp /usr/share/applications/com.gexperts.Tilix.desktop ~/.local/share/applications

and edit it:

....
Exec=tilix --maximize
....
bakai-taalaibek commented 4 months ago

https://github.com/gnunn1/tilix/assets/121804957/a5287584-a225-40f3-8f61-7246a1f7ed54

It doesn't work

237dmitry commented 4 months ago

It doesn't work

In my environment it works without any problem. Arch, XFCE.

$ grep 'Exec=tilix' ./.local/share/applications/com.gexperts.Tilix.desktop
Exec=tilix --maximize
Exec=tilix --action=app-new-window
Exec=tilix --action=app-new-session
Exec=tilix --preferences
bakai-taalaibek commented 4 months ago

I am on Fedora, Gnome, Wayland, zsh, although Tilix fails to open as maximized window in bash too.

237dmitry commented 4 months ago

If it does not work from CLI, I guess the reason is Wayland. How does it behave on xorg? If it works from CLI, you should determine how launcher works (maybe not with desktop files)

bakai-taalaibek commented 4 months ago

It works from CLI just fine. It also used to work if you set the number of columns as 140 and the number of rows as 34. But a couple of days ago it stopped working even if I set columns and rows and 500. The default gnome terminal opens maximized if I set a high number of columns and rows.

237dmitry commented 4 months ago

Are there any settings for the icons in the launch area? The command may need to be specified there. I don't use Gnome and this is just a suggestion.

bakai-taalaibek commented 4 months ago

You usually copy an appropriate file from /usr/share/applications to ~/.local/share/applications and redact the line that starts with "Exec". But it didn't help.