You are not logged in.
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
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
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
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
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
Offline
Do the '--tray' or '--hidden' switches not work for you?
Offline
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.
# 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 )
Offline
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