You are not logged in.

#1 2017-11-05 13:20:01

ab90
Member
Registered: 2017-09-06
Posts: 195

[SOLVED] minimize window via terminal command

My autostart script lets antimicro pop up on start up.
Can the same script minimize it?
Tried --minimize and --iconify but they didnt work.

Thank you for helping

Last edited by Head_on_a_Stick (2017-11-10 22:29:41)


"Be humble, be cool, dance techno-style to heavy metal music."

Offline

#2 2017-11-05 13:50:40

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] minimize window via terminal command

ab90 wrote:

Can the same script minimize it?

Not really, all the autostart script does is run the programs listed through the user's default (login) shell.

However, if the antimicro command has a minimise option then that might work.

Alternatively. I think you can tell openbox (the window manager in BunsenLabs) to start the application minimised:

https://askubuntu.com/questions/291701/ … 862#291862

EDIT: the relevant file in BunsenLabs can be found at ~/.config/openbox/rc.xml

Last edited by Head_on_a_Stick (2017-11-05 13:51:34)

Offline

#3 2017-11-09 17:42:26

ab90
Member
Registered: 2017-09-06
Posts: 195

Re: [SOLVED] minimize window via terminal command

RC is for keybinds, can an event be an autostart?

Last edited by ab90 (2017-11-09 17:45:02)


"Be humble, be cool, dance techno-style to heavy metal music."

Offline

#4 2017-11-09 19:08:07

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: [SOLVED] minimize window via terminal command

The xdotool can minimize windows ... for example:

$ xdotool windowminimize [options] [window]

It might not be straightforward how to minimize this particular window, i.e. how to discover what should be the argument '[window]', but I have feeling that a bit of googling and documentation reading (for 'xdotool' and 'xwininfo'/'xprop') will do the trick.

(I don't like xdotool ... nothing personal, simply not my thing. I prefer 'xwininfo' and 'xprop' and bash scripting. Even python with X11 bindings ...)

Last edited by iMBeCil (2017-11-09 19:08:27)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#5 2017-11-09 19:16:14

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] minimize window via terminal command

ab90 wrote:

RC is for keybinds

rc.xml covers the entire gamut of Openbox's configuration and it is the correct location for the suggested changes.

It would probably have been quicker to confirm that for yourself rather than wait several hours for my reply wink

Offline

#6 2017-11-09 23:24:00

beaker
Unverified Muppet
Registered: 2016-03-06
Posts: 198

Re: [SOLVED] minimize window via terminal command

Do the '--tray' or '--hidden' switches not work for you?

Offline

#7 2017-11-10 01:28:09

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,668
Website

Re: [SOLVED] minimize window via terminal command

Head_on_a_Stick wrote:
ab90 wrote:

Can the same script minimize it?

Not really, all the autostart script does is run the programs listed through the user's default (login) shell.

Not exactly, at least if you're talking about ~/.config/openbox/autostart. The script is run by "sh" which on a default Debian setup is dash.

/usr/lib/x86_64-linux-gnu/openbox-autostart wrote:

# Run the user openbox autostart script
if test -f $AUTOSTART; then
    sh $AUTOSTART
elif test -f $AUTOSTART.sh; then
    sh $AUTOSTART.sh
fi

This is not usually the user's login shell.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#8 2017-11-10 09:16:06

ab90
Member
Registered: 2017-09-06
Posts: 195

Re: [SOLVED] minimize window via terminal command

Do the '--tray' or '--hidden' switches not work for you?

--tray did it! ...didnt know that one.

Solved! Perfect. Best Forum/Distro Support!


"Be humble, be cool, dance techno-style to heavy metal music."

Offline

Board footer

Powered by FluxBB