gnunn1 / tilix

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

Add option to maximize window on start and disable titlebar (like in terminator) #1113

Closed mariuszs closed 7 years ago

mariuszs commented 7 years ago

Can we put title information into gnome top bar? There is plenty of place here.

phw commented 7 years ago
tilix --maximize --window-style=disable-csd-hide-toolbar

Does this do what you want?

mariuszs commented 7 years ago

Yes, it is! Thanks! Is possible to set this from Settings menu or somehow in configuration file?

mariuszs commented 7 years ago

Hmm, no exactly this is what I want.... Titlebar is ok and useful, but window title is not. I'm thinking about window without title. Window title is only useful, when you want to move this window or change size. But when you are working in maximize mode, then you dont need this.

This option is similar to Gooogle Chrome custom title bar (when window is maximized, then titlebar is gone).

gnunn1 commented 7 years ago

You can set the window style to borderless instead:

tilix --maximize --window-style=borderless
mariuszs commented 7 years ago

Thanks, this is what I was looking for!

lokesh-krishna commented 6 years ago

Where does one pass this command in order for Tilix launched from the launcher to have these properties? I tried adding them to com.gexperts.Tilix.desktop but that doesn't seem to do it.

odimko commented 5 years ago

@lokesh-krishna have you found a solution? I have the same issue.

@gnunn1 @phw: guys, could you please explain how to make a desktop shortcut launching Tilix maximized? As now adding the suggested parameters in the configuration file has no effect.

Thanks in advance!

FFY00 commented 5 years ago

@odimko, just copy the .desktop file and add that to the exec command.

https://wiki.archlinux.org/index.php/desktop_entries

odimko commented 5 years ago

@FFY00 thanks a lot for a fast reply! it does launch fullscreen now, when run from the Applications menu, however, running from the launchpad has no effect - the window appears small. any ideas? :)

venteto commented 3 years ago

@odimko, just copy the .desktop file and add that to the exec command.

For whatever reason, for me tilix --**maximize** works in a terminal, but in Manjaro GNOME 40 Wayland, it does not work in my desktop entry (my US name is picked up, and the file validates). Similarly, a convoluted hack to try to use a session in the desktop entry fails (tilix --session=/path/to/tilix-default-maximized-session.json), but works in Terminator:

[Desktop Entry]
Version=1.4

#       updated 01 August 2021
# desktop-file-validate com.gexperts.Tilix.desktop
# desktop-file-install --dir=$HOME/.local/share/applications com.gexperts.Tilix.desktop
# update-desktop-database ~/.local/share/applications

Name[en_US]=Tilix max
Name=Tilix
Comment=A tiling terminal for Gnome
Keywords=shell;prompt;command;commandline;cmd;

Exec=tilix --maximize

Terminal=false
Type=Application
StartupNotify=true
Categories=System;TerminalEmulator;X-GNOME-Utilities;
Icon=com.gexperts.Tilix
DBusActivatable=true

Actions=new-window;new-session;preferences;

[Desktop Action new-window]
Name=New Window
Exec=tilix --action=app-new-window

[Desktop Action new-session]
Name=New Session
Exec=tilix --action=app-new-session

[Desktop Action preferences]
Name=Preferences
Exec=tilix --preferences

Thus, rather than rely on desktop entries, and in spite of past resistance to make this a preference, it would still be nice to have this maximize switch in the dconf settings (even better: in an editable, versionable ~/.config/tilix.toml file or similar ... anything but data interchange formats never intended for use as config files (and disallowing comments), e.g., JSON, nor a custom syntaxes, e.g., .gitconfig). I mean this seems like a more obvious option than some of the options already present directly in the Tilix "Preferences" GUI menu itself.

You can change it in the settings file for, e.g., Terminator ... see here for an example.

nelrodriguez22 commented 3 years ago

@odimko, just copy the .desktop file and add that to the exec command.

For whatever reason, for me tilix --**maximize** works in a terminal, but in Manjaro GNOME 40 Wayland, it does not work in my desktop entry (my US name is picked up, and the file validates). Similarly, a convoluted hack to try to use a session in the desktop entry fails (tilix --session=/path/to/tilix-default-maximized-session.json), but works in Terminator:

[Desktop Entry]
Version=1.4

#       updated 01 August 2021
# desktop-file-validate com.gexperts.Tilix.desktop
# desktop-file-install --dir=$HOME/.local/share/applications com.gexperts.Tilix.desktop
# update-desktop-database ~/.local/share/applications

Name[en_US]=Tilix max
Name=Tilix
Comment=A tiling terminal for Gnome
Keywords=shell;prompt;command;commandline;cmd;

Exec=tilix --maximize

Terminal=false
Type=Application
StartupNotify=true
Categories=System;TerminalEmulator;X-GNOME-Utilities;
Icon=com.gexperts.Tilix
DBusActivatable=true

Actions=new-window;new-session;preferences;

[Desktop Action new-window]
Name=New Window
Exec=tilix --action=app-new-window

[Desktop Action new-session]
Name=New Session
Exec=tilix --action=app-new-session

[Desktop Action preferences]
Name=Preferences
Exec=tilix --preferences

Thus, rather than rely on desktop entries, and in spite of past resistance to make this a preference, it would still be nice to have this maximize switch in the dconf settings (even better: in an editable, versionable ~/.config/tilix.toml file or similar ... anything but data interchange formats never intended for use as config files (and disallowing comments), e.g., JSON, nor a custom syntaxes, e.g., .gitconfig). I mean this seems like a more obvious option than some of the options already present directly in the Tilix "Preferences" GUI menu itself.

You can change it in the settings file for, e.g., Terminator ... see here for an example.

hi i was facing the same problem i think i found a "solution" ...just click in preferences/Global and check "Save and restore windows state" ..and then click en maximize button or just put tilix --maximize and then exit and reopen, and thats it!

venteto commented 3 years ago

hi i was facing the same problem i think i found a "solution" ...just click in preferences/Global and check "Save and restore windows state" ..and then click en maximize button or just put tilix --maximize and then exit and reopen, and thats it!

I've always had Save and restore windows state selected, and it doesn't work for me, under Wayland or X11, no matter how many hackish ways I try to trick TIlix into being obedient like Terminator.

morfyum commented 3 years ago

same issue. I cant start in maximized... Tilix the best, and this is a really evil bug :( I try to modify .desktop file, and check restore session in Global settings, but nothing,

jvalleroy commented 1 year ago

same issue. I cant start in maximized... Tilix the best, and this is a really evil bug :( I try to modify .desktop file, and check restore session in Global settings, but nothing,

Here is a solution that worked for me: After copying and modifying the .desktop file, I also had to rename it (I renamed it to tilix.desktop).