18
submitted 1 day ago* (last edited 1 day ago) by wolf@lemmy.zip to c/linux@lemmy.ml

When using TMUX, it is easy to create a script, which opens TMUX, configures the screens/panes of TMUX and open/run programs.

I like this a lot.

My baseline would be something like, when I login, some applications are executed and their windows automatically placed on a virtual desktop.

For example:

  • Open Firefox and put it on virtual desktop 1
  • Open Terminal in fullscreen and put it on virtual desktop 2
  • Open VSCode and put it on virtual desktop 3

Something like that is possible with sway, in the environment I am working, sway is not able to run XWayland applications w/o crashing.

Is there any way to have this functionality on Gnome, Mate, Xfce?

Even better would be something to open several windows and arrange them automatically for different work tasks/projects I am working on. Any ideas?

Edit: Solved! Thanks for the input. Auto Move Windows extension for Gnome solves my problem.

top 9 comments
sorted by: hot top controversial new old
[-] sxan@midwest.social 1 points 2 hours ago

Herbstluftwm. It's one of the main reasons I use it.

You can run commands on the command line to create your layouts for one or more desktop (tagged spaces), assign programs to appear on tagged spaces, and then run the programs. Put it all in a shell script and hlwm runs it when it starts.

I use xtoolwait for programs I want multiple windows on different desktops for, like terminals.

I have three monitors; one is a status window, and the other two are grouped together in 8 different tags. Mod4+9 focuses the status screen, Mod4+[1-8] switch the other two monitors in sync to the other workspaces. It's all set up when I log in, including the creation of several terminals each running tmux from sessions restored by trum-session. The only thing I have to do is enter a password to unlock my secrets so background processes can start doing their thing.

[-] Bonje@lemmy.world 10 points 1 day ago* (last edited 1 day ago)

KDE window rules can do this natively

Hyprland window rules can also do this natively

Gnome can also do this with extensions as mentioned

[-] wolf@lemmy.zip 1 points 1 day ago

Thanks, but could you clarify which extension to move for Gnome? native window placement is AFAIK just for the overview.

[-] Bonje@lemmy.world 2 points 23 hours ago
[-] nyan@sh.itjust.works 3 points 1 day ago

TDE has this natively under the advanced window settings, so I would expect KDE to have it too.

[-] Dran_Arcana@lemmy.world 3 points 1 day ago

I do this with awesomewm. You define window startup behavior in the main config. Applications can have static behavior to start in certain places or will default to "wherever my cursor currently is". I suspect i3 has similar functionality

[-] wildbus8979@sh.itjust.works 2 points 1 day ago

This can easily be achieved in Gnome with a couple of extensions

[-] wolf@lemmy.zip 2 points 1 day ago

Which extensions do I need?

[-] wildbus8979@sh.itjust.works 3 points 1 day ago

Native Window Placement I think it's called, I'm not in front of the computer. It's installed by default at least in Debian. And gTile for tiling.

this post was submitted on 30 Jun 2025
18 points (100.0% liked)

Linux

55874 readers
733 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS