Everytime I set up my recording session. I have to manually open 12 thunar windows and resize them so they fit on the screen. Along with those windows I have Gnome-schedule open as well as the volume control settings. Is there any easier way to set this up so I don't have to reinvent the wheel every time?
I hae an image to upload to this post but am not sure what the best way is to do this? Please advise. I saw some posts from around four years ago in the #! forum.
Last edited by rmcellig (2014-11-09 00:26:36)
I'm not sure if a tiling manager (awesome or something similar?) would work for me. In effect, I was wondering if I for example selected alt-F!, it would open up all the windows I need to have open. Would I have to set up a script to do this, or is there another way that I am not understanding?
This is all new to me so any help/ advice is really appreciated.
If it's always the same layout, then a manual tiling window manager like i3 or subtle may be the way to go. You can divide up your screen the way you need to. If the apps you're opening support a geometry, then you could write a script that opens everything at it's proper coordinates on your screen - command would be something like:
thunar --geometry 200x100+0+0
which is wxh x,y
You could also make key bindings to move and resize the windows into a grid after you open the app.
Last edited by PackRat (2014-11-09 01:44:49)
"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe
i sympathize with the reluctance to change window managers.
fortunately, things like pytyle exist, a tiling utility that can be superimposed on an existing wm (i was sure it's in the repos, but can't find it right now)..
it definitely works with openbox, and i'm pretty sure you can set it up to do precisely what you need.
Try manual tiling in Openbox with window geometry keybindings.
Read Brontosaurusrex's howto on openbox manual tiling.
Grab my (somewhat old) rc.xml.
Don't copy over your own setup, it will not fit! Open in editor and examine lines 279-573. I've got a 2Rx3C layout for numpad keys. You can use whichever keys and coordinates you wish.
you could do a silly script like this;
#!/bin/bash # thuntest # I need 'xdotool' < in repos # open 3 thunar windows to specific positions, adjust sleep as you wish thunar ~/downloads/ && sleep 3 && xdotool getactivewindow windowsize 300 300 windowmove 0 30 thunar ~/videos/ && xdotool getactivewindow windowsize 300 300 windowmove 300 30 thunar ~/images/ && xdotool getactivewindow windowsize 300 300 windowmove 600 30
Last edited by brontosaurusrex (2014-11-09 13:59:37)
I like this! Now to take it another step, is it possible to have them load in a specific desktop? For example, I have four desktops and would like them to open in desktop 3. If this is possible, that would be beyond awesome!!
Just looking at the code you posted intrigues me to no end! And don't forget, I am a former Mac user. I can't believe all the stuff you can do with Linux!!!
#!/bin/bash # thuntest2 # I need 'xdotool' < in repos # open 3 thunar windows to specific positions at desktop 1 (they start with 0!) now=$(xdotool get_desktop) xdotool set_desktop 1 # < change me to a desktop you want thunar windows to open # adjust sleep as you wish thunar ~/downloads/ && sleep 3 && xdotool getactivewindow windowsize 300 300 windowmove 0 30 thunar ~/videos/ && xdotool getactivewindow windowsize 300 300 windowmove 300 30 thunar ~/images/ && xdotool getactivewindow windowsize 300 300 windowmove 600 30 xdotool set_desktop "$now" # return me to original desktop