Automatically maximize (certain) windows

I’d like to have certain windows open maximized by default. Is there a way to do this in Budgie? Other programs I’ve used for this in the past don’t seem to work here (e.g. AllTray, Maximus)…

A new feature called “window rules”, like this is actually on the list, and it is already prepared in the Shuffler daemon. Read below how to connect your action to it manually:

Shuffler has a dconf setting: /org/ubuntubudgie/windowshuffler/newwindowaction, to which you can connect a new window action. To maximize new windows of a specific WM_CLASS:

  • Copy the script below into an empty file, call it or whatever you like. In the head of the script, list your targeted WM_CLASS -es in subjects = ["Gedit", "Tilix"] (open a terminal, type xprop WM_CLASS + return, then click on the window to find out the WM_CLASS)

  • Make the script executable(!)

  • Make shuffler daemon run the script by the command
    gsettings set org.ubuntubudgie.windowshuffler newwindowaction '/path/to/'

The script:

#!/usr/bin/env python3
import gi
gi.require_version('Wnck', '3.0')
from gi.repository import Wnck
import sys

subjects = ["Gedit", "Tilix"]

wnck_scr = Wnck.Screen.get_default()
wlist = wnck_scr.get_windows()
for w in wlist:
    if all([
        w.get_class_group_name() in subjects,
        w.get_xid() == (int(sys.argv[1]))
1 Like