Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Start bash shell already minimized. (Read 657 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Start bash shell already minimized.


 Hello, short question here. I'm used too start my apps inside a shell so I can see at a glance things that may not work properly so I can fix them.  Is there any flag I can pass so that particular shell starts minimized? I'm using good old bash shell.


Re: Start bash shell already minimized.

Reply #1
I believe it has more to do with terminal (assuming you are using X and not pure console instead) than with shell. Even terminal may not be the right point to minimize window but your DE/WM. DE/WM scripting is usually very possible but I am using DWM and won't install anything bigger, meaning I could take a look at docs but not test if it works on anything bigger. So what terminal and DE/WM are you using?

Re: Start bash shell already minimized.

Reply #2

 Hello tnx I'm using Xfce / Xfwm4 and thunar as file manager.


Re: Start bash shell already minimized.

Reply #3
So the terminal is xfce4-terminal? I am not sure I understand how do you start programs to be attached to terminal if you don't open terminal and type literal program name then press enter. Other option would be to execute terminal with bash command, something like

Code: [Select]
xfce4-terminal -e 'bash -c "echo like this?; sleep 20"'

but then how do you execute that? Either way why don't you redirect stderr to log (even stdout if you want) and examine log any time you want, why terminal?

Re: Start bash shell already minimized.

Reply #4
Just start them with nohup and it creates nohup.out file that you can read even live, i think it outputs stderr by default which is most obvious but you can redirect stdout easily too.

Re: Start bash shell already minimized.

Reply #5
 
 Tnx again. Xfce has a nice feature. We can choose a launcher and add it to the panel we have and in there we can opt to run that particular app inside terminal. Of course there we can edit what command the launcher should  execute and customize what icon we want.

The main issue is not the method to start inside terminal an app but to start it with a minimized terminal window so I don't have to minimize and click a truckload of times around.

When I need I can unminimize terminal app and see if there's some weird things happening in there..

> Why terminal
There's slightly different execution chain when you execute normally an app vs inside terminal. Execution chain is way out shorter via terminal and faster to access the output. No need for huge logs and other bloated 'maneuvers'.

see this image



Re: Start bash shell already minimized.

Reply #6
Does --minimize work? It is documented in "man xfce4-terminal". I am on dwm so can't try it. What happens when you execute this:

Code: [Select]
xfce4-terminal --minimize -e 'bash -c "echo like this?; sleep 20"'

Re: Start bash shell already minimized.

Reply #7

 Pheeww you saved me.
 used
Code: [Select]
xfce4-terminal --minimize -e 'mpv --player-operation-mode=pseudo-gui'
and it worked perfecto for the mpv 🎯 thank you!

Have to look over documentations next time but I think it's useful for others like me that don't read man pages much 😄

 Thanks, solved ✅