width:
Code: Select all
xwininfo -root | grep '\geometry' | cut -f4 -d ' ' | cut -f1 -d 'x'
Code: Select all
xwininfo -root | grep '\geometry' | cut -f4 -d ' ' | cut -f2 -d 'x' | cut -f1 -d '+'
aragon
Code: Select all
xwininfo -root | grep '\geometry' | cut -f4 -d ' ' | cut -f1 -d 'x'
Code: Select all
xwininfo -root | grep '\geometry' | cut -f4 -d ' ' | cut -f2 -d 'x' | cut -f1 -d '+'
Code: Select all
#!/bin/sh
rox
WID=`xdotool getactivewindow`
xdotool windowsize $WID 512 384 &
xdotool windowmove $WID 512 0
rox /
WID=`xdotool getactivewindow`
xdotool windowsize $WID 512 384 &
xdotool windowmove $WID 0 0
Code: Select all
#!/bin/sh
SW=`xwininfo -root | grep '\geometry' | cut -f4 -d ' ' | cut -f1 -d 'x'`
SH=`xwininfo -root | grep '\geometry' | cut -f4 -d ' ' | cut -f2 -d 'x' | cut -f1 -d '+'`
SH2=`echo "scale=0; $SH*0.94" | bc -l | cut -f1 -d '.'`
HSW=`echo "scale=0; $SW/2*0.98" | bc -l | cut -f1 -d '.'`
HSP=`echo "scale=0; $SW/2-1" | bc -l | cut -f1 -d '.'`
rox
WID=`xdotool getactivewindow`
xdotool windowsize $WID $HSW $SH2 &
xdotool windowmove $WID $HSP 0
rox /
WID=`xdotool getactivewindow`
xdotool windowsize $WID $HSW $SH2 &
xdotool windowmove $WID 0 0
Code: Select all
<Option name="filer_auto_resize">2</Option>
Code: Select all
#!/bin/sh
rox
WID='xdotool getactivewindow'
xdotool windowsize $WID 500 600 &
xdotool windowmove $WID 510 5
rox
WID='xdotool getactivewindow'
xdotool windowsize $WID 500 600 &
xdotool windowmove $WID 5 5
this is a feature of openbox and some other wm called smart-placement.Sylvander wrote:Is this to be considered a feature or a fault [bug]?
Sylvander,Sylvander wrote:Should I try to install and use a different window manager?
Or stay with the existing one [openbox?]
short progress report:DaveS wrote:aragon, the option to not auto resize works well. It comes from the rox option settingDo you see a way to pass that as a command line arguement in the roxset script such that it would be effective for that session only?Code: Select all
<Option name="filer_auto_resize">2</Option>
aragon,aragon wrote:short progress report:DaveS wrote:aragon, the option to not auto resize works well. It comes from the rox option settingDo you see a way to pass that as a command line arguement in the roxset script such that it would be effective for that session only?Code: Select all
<Option name="filer_auto_resize">2</Option>
i'm able to temporarely change the rox-option and restore the previous options after running the script. problem is, that the new 'side-by-side'-windows pick-up the restored setting, so that we have the same as without it.
so for the moment the way is to set the option to not auto-resize in rox. after that the script as posted runs fine (for me).
i will report if i find out more.
aragon
for 800 x 600 try to play with the percentages (0.94 and 0.98 ) in these lines:seaside wrote: I very much like your code for making two equal panes that cover the desktop based on actual screen size - checked it for a variety of screen resolutions and they worked nicely with only the 800x600 having a slight overlap which is due to WM bickering (not enough to be a real problem).
Code: Select all
SH2=`echo "scale=0; $SH*0.94" | bc -l | cut -f1 -d '.'`
HSW=`echo "scale=0; $SW/2*0.98" | bc -l | cut -f1 -d '.'`
i would recommend to not change the autoresizing in the script. What you could do is to place an pinstall.sh (postinstall-sript) in the pet-file which automatically runs a xmessage-message with the info.seaside wrote: Some questions to all before I repackage Roxset with Aragon's nice work---
It seems to me that the best use of Roxset is to run it without auto-sizing and thus making it for all practical purposes a two-paned fixed window environment.
With that in mind, just changing the Rox Options file to "filer_auto_resize">2 at the beginning of the Roxset script would achieve this, but place Rox in "No-autosize" mode.
(The next time Rox is run it won't Autosize, unless the Options part of Rox is reset)
This wouldn't be of much concern to me - I'd just change the option back if I wanted to, but perhaps this might confuse others.
The other way would be to just note that one of the panes should be right-clicked and under Options>Filer windows>Never automatically resize be selected.
Any thoughts on this........