Shrinking Vertical Size of Window

View: New views
17 Messages — Rating Filter:   Alert me  

Shrinking Vertical Size of Window

by Alan McConnell :: Rate this Message:

| View Threaded | Show Only this Message

Assembled Wisdom!

Sometimes -- I don't know how, or what command is given by the
web site I'm accessing -- the vertical size of my iceweasel(*)
window becomes larger than the size of my screen, and, no matter how
near the top of my screen the top of the iceweasel window is,
the bottom edge has disappeared.  If this bottom edge has
disappeared, I can't grab it with the mouse and shrink the
vertical size of the window to its normal height.

Is there a keyboard command to deal with this problem?  I always
have terminal windows open, so I could set up a rep command
to set the proper size of (whatever) window, in this case the
iceweasel one.

I'm running Debian squeeze, and sawfish 1.3.5 2.

Thanks in advance for anticipated help!

Alan McConnell

(*)  iceweasel, the name that Debian gives to Mozilla's Firefox

--
Alan McConnell :  http://patriot.net/users/alan
   It is better to know some of the questions than all of the answers.
   He who hesitates is sometimes saved.  (both by James Thurber)

Re: Shrinking Vertical Size of Window

by Christopher Roy Bratusek-2 :: Rate this Message:

| View Threaded | Show Only this Message

Am 09.06.2011 18:49, schrieb Alan McConnell:

> Assembled Wisdom!
>
> Sometimes -- I don't know how, or what command is given by the
> web site I'm accessing -- the vertical size of my iceweasel(*)
> window becomes larger than the size of my screen, and, no matter how
> near the top of my screen the top of the iceweasel window is,
> the bottom edge has disappeared.  If this bottom edge has
> disappeared, I can't grab it with the mouse and shrink the
> vertical size of the window to its normal height.
>
> Is there a keyboard command to deal with this problem?  I always
> have terminal windows open, so I could set up a rep command
> to set the proper size of (whatever) window, in this case the
> iceweasel one.
>
> I'm running Debian squeeze, and sawfish 1.3.5 2.
>
> Thanks in advance for anticipated help!
>
> Alan McConnell
>
> (*)  iceweasel, the name that Debian gives to Mozilla's Firefox
Hi Alan,

first of all welcome to the list :)

Second Sawfish 1.3.5.2 is totally outdated. The latest stable release is
1.8.1, so you're better off updating and testing it then.

See http://sawfish.wikia.com/wiki/Compilation_from_source for example.

Chris

Re: Shrinking Vertical Size of Window

by Andrea Vettorello :: Rate this Message:

| View Threaded | Show Only this Message

On Thu, Jun 9, 2011 at 6:49 PM, Alan McConnell <alan@...> wrote:

> Assembled Wisdom!
>
> Sometimes -- I don't know how, or what command is given by the
> web site I'm accessing -- the vertical size of my iceweasel(*)
> window becomes larger than the size of my screen, and, no matter how
> near the top of my screen the top of the iceweasel window is,
> the bottom edge has disappeared.  If this bottom edge has
> disappeared, I can't grab it with the mouse and shrink the
> vertical size of the window to its normal height.
>
> Is there a keyboard command to deal with this problem?  I always
> have terminal windows open, so I could set up a rep command
> to set the proper size of (whatever) window, in this case the
> iceweasel one.
>

I use a lot the "Resize window interactively" function to resize a
window clicking anywhere on it, instead of pointing at the
borders/edges.


--
Andrea

Re: Shrinking Vertical Size of Window

by Alan McConnell :: Rate this Message:

| View Threaded | Show Only this Message

On Thu, Jun 09, 2011 at 09:22:07PM +0200, Andrea Vettorello wrote:

>
> > Is there a keyboard command to deal with this problem?  I always
> > have terminal windows open, so I could set up a rep command
> > to set the proper size of (whatever) window, in this case the
> > iceweasel one.
> >
>
> I use a lot the "Resize window interactively" function to resize a
> window clicking anywhere on it, instead of pointing at the
> borders/edges.
        This sounds like _exactly_ what I need.  But it is too little
        information for this sawfish-internals newbie.  I have done
        some googling, and have poked around in the
        http://sawfish.wikia.com/wiki/, but only got more confused.
  I don't even know how to set up .sawfish/ in my home directory
        properly.

Many thanks in advance for additional pointers!

Alan

--
Alan McConnell :  http://patriot.net/users/alan
   It is better to know some of the questions than all of the answers.
   He who hesitates is sometimes saved.  (both by James Thurber)

Re: Shrinking Vertical Size of Window

by dmg-4 :: Rate this Message:

| View Threaded | Show Only this Message

I have always bound a key to call-command

(call-command . "M-C-x")

it can always get you out of a problem.

and i also bind

(maximize-window-horizontally-toggle . "M-C-h")
(maximize-window-vertically-toggle . "M-C-v")
(maximize-window-toggle . "M-C-m")

I use these 3 commands all the time (particularly the vertical, and
general toggle).

I also have a lisp-command that moves the windows "inside"

(dmg-move-window-inside . "M-C-i")

this means move and if necessary, resize. it is part of this module:

http://turingmachine.org/hacking/sawfishLisp/dmg-after-rotate.jl

which is very handy if you rotate the screen.

--dmg

On Thu, Jun 9, 2011 at 6:47 PM, Alan McConnell <alan@...> wrote:

> On Thu, Jun 09, 2011 at 09:22:07PM +0200, Andrea Vettorello wrote:
>>
>> > Is there a keyboard command to deal with this problem?  I always
>> > have terminal windows open, so I could set up a rep command
>> > to set the proper size of (whatever) window, in this case the
>> > iceweasel one.
>> >
>>
>> I use a lot the "Resize window interactively" function to resize a
>> window clicking anywhere on it, instead of pointing at the
>> borders/edges.
>        This sounds like _exactly_ what I need.  But it is too little
>        information for this sawfish-internals newbie.  I have done
>        some googling, and have poked around in the
>        http://sawfish.wikia.com/wiki/, but only got more confused.
>        I don't even know how to set up .sawfish/ in my home directory
>        properly.
>
> Many thanks in advance for additional pointers!
>
> Alan
>
> --
> Alan McConnell :  http://patriot.net/users/alan
>   It is better to know some of the questions than all of the answers.
>   He who hesitates is sometimes saved.  (both by James Thurber)
>



--
--dmg

---
Daniel M. German
http://turingmachine.org

Re: Shrinking Vertical Size of Window

by Andrea Vettorello :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, Jun 10, 2011 at 12:47 AM, Alan McConnell <alan@...> wrote:

> On Thu, Jun 09, 2011 at 09:22:07PM +0200, Andrea Vettorello wrote:
>>
>> > Is there a keyboard command to deal with this problem?  I always
>> > have terminal windows open, so I could set up a rep command
>> > to set the proper size of (whatever) window, in this case the
>> > iceweasel one.
>> >
>>
>> I use a lot the "Resize window interactively" function to resize a
>> window clicking anywhere on it, instead of pointing at the
>> borders/edges.
>        This sounds like _exactly_ what I need.  But it is too little
>        information for this sawfish-internals newbie.  I have done
>        some googling, and have poked around in the
>        http://sawfish.wikia.com/wiki/, but only got more confused.
>        I don't even know how to set up .sawfish/ in my home directory
>        properly.
>
> Many thanks in advance for additional pointers!

You can manually add the bind to your ~/.sawfishrc as suggested by dmg
or you can use the Sawfish configuration interface (sawfish-ui).

In my case I use the left mouse button pressed with the "Super"
modifier (usually the key with a windos logo) to resize the window
clicking anywhere on it, using the left mouse button with the Meta
modifier (the Alt key) I can move a window clicking anywhere on it.

So open the sawfish-ui, go to the "Bindings" section, select the
"Window" context and click on the "Add" button, select the function
you are interested (in this case "Resize window interactively") and
associate a key/mouse combination, in my case the bind is
"Super-Button1-Click", you can manually insert it or you can use the
"Grab" button, it will (try to) translate the next key/mouse
combination with the corresponding string.

Hope this helps.


--
Andrea

Re: Shrinking Vertical Size of Window

by Christopher Roy Bratusek-2 :: Rate this Message:

| View Threaded | Show Only this Message

It sounds like it's an issue with JavaScript. I've setup things to
forbid resizing the window from JS like: In Iceweasel go to Preferences
 > Content > Enable JavaScript > Advanced.

Chris

Re: Shrinking Vertical Size of Window

by Timo Korvola-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Thursday 09 June 2011 19:49:38 Alan McConnell wrote:
> window becomes larger than the size of my screen, and, no matter how
> near the top of my screen the top of the iceweasel window is,
> the bottom edge has disappeared.

> Is there a keyboard command to deal with this problem?

Several, apparently, although probably not all bound to keys by default.
My favourite for this purpose would be shrink-window-up, but I am biased
since I wrote it.

--
        Timo Korvola <URL:http://www.iki.fi/tkorvola>

Re: Shrinking Vertical Size of Window

by Alan McConnell :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, Jun 10, 2011 at 10:12:42AM +0200, Andrea Vettorello wrote:
> On Fri, Jun 10, 2011 at 12:47 AM, Alan McConnell <alan@...> wrote:

        .  .  .  .

> >        I don't even know how to set up .sawfish/ in my home directory
> >        properly.
> >
> > Many thanks in advance for additional pointers!
>
> You can manually add the bind to your ~/.sawfishrc as suggested by dmg
      My directory is called ~/.sawfish  ; but I think this is not
      important, since when I play with the "Sawfish Configurator",
      the file ~/.sawfish/custom  changes.  (I regard this as a
      sign that I'm making progress<g>)


> So open the sawfish-ui, go to the "Bindings" section, select the
> "Window" context and click on the "Add" button, select the function
> you are interested (in this case "Resize window interactively") and
> associate a key/mouse combination, in my case the bind is
> "Super-Button1-Click", you can manually insert it or you can use the
> "Grab" button, it will (try to) translate the next key/mouse
> combination with the corresponding string.
       I tried the "Super-Button1-Click" I tried the "Grab";
              each time the  custom   file mentioned above changed.
              But I didn't achieve nuttin, as far as I could tell.

              Let me shoot for the following goal:  I'd like to
              place my mouse somewhere _inside_ the window, then
              press on Meta(same as ESC, for sawfish as for Emacs,
              right?) and then, pressing on e.g. Button1, be able
              to drag the window around.  If I can do this, then
         I can get to the bottom of the window by shoving it
              upward.

              Andrea, and probably many others, can give me the
              exact instructions on how to do this.  And that will
              be my "Hello, World" moment in sawfish configuration!

TIA,

Alan

--
Alan McConnell :  http://patriot.net/users/alan
        It is difficult to get a man to understand something when
        his income depends on his not understanding it.

Re: Shrinking Vertical Size of Window

by GSR - FR :: Rate this Message:

| View Threaded | Show Only this Message

Hi,
alan@... (2011-06-10 at 1612.07 -0400):
> > You can manually add the bind to your ~/.sawfishrc as suggested by dmg
>       My directory is called ~/.sawfish  ; but I think this is not

~/.sawfish/ is the directory sawfish uses for lots of things, hand
edited user config goes in ~/.sawfishrc or ~/.sawfish/rc files
(personally, I prefer the later, so everything is inside one place),
and GUI based config is saved to ~/.sawfish/custom file.

GSR
 

Re: Shrinking Vertical Size of Window

by Andrea Vettorello :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, Jun 10, 2011 at 10:12 PM, Alan McConnell <alan@...> wrote:

[...]

>> So open the sawfish-ui, go to the "Bindings" section, select the
>> "Window" context and click on the "Add" button, select the function
>> you are interested (in this case "Resize window interactively") and
>> associate a key/mouse combination, in my case the bind is
>> "Super-Button1-Click", you can manually insert it or you can use the
>> "Grab" button, it will (try to) translate the next key/mouse
>> combination with the corresponding string.
>              I tried the "Super-Button1-Click" I tried the "Grab";
>              each time the  custom   file mentioned above changed.
>              But I didn't achieve nuttin, as far as I could tell.
>
IIRC, if the focus mode is different than "click", like "enter-exit"
or "enter-only" the "Grab" function usually doesn't work.

>              Let me shoot for the following goal:  I'd like to
>              place my mouse somewhere _inside_ the window, then
>              press on Meta(same as ESC, for sawfish as for Emacs,
>              right?) and then, pressing on e.g. Button1, be able
>              to drag the window around.  If I can do this, then
>              I can get to the bottom of the window by shoving it
>              upward.
>
>              Andrea, and probably many others, can give me the
>              exact instructions on how to do this.  And that will
>              be my "Hello, World" moment in sawfish configuration!
>
The function you need to bind is "Move window interactively", the key
should be "M-Button1-Click" (without quotes) and you should add it to
the window context.


--
Andrea


Sawfish Configurator.png (29K) Download Attachment

Re: Shrinking Vertical Size of Window

by Christopher Roy Bratusek-2 :: Rate this Message:

| View Threaded | Show Only this Message

Am 11.06.2011 07:44, schrieb Andrea Vettorello:
>
> IIRC, if the focus mode is different than "click", like "enter-exit"
> or "enter-only" the "Grab" function usually doesn't work.
>

Ah... you were faster than me...
I was just about to announce, that this is fixed :)

Chris

Re: Shrinking Vertical Size of Window

by Alan McConnell :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, Jun 11, 2011 at 07:44:21AM +0200, Andrea Vettorello wrote:

> On Fri, Jun 10, 2011 at 10:12 PM, Alan McConnell <alan@...> wrote:
>
> >              Let me shoot for the following goal:  I'd like to
> >              place my mouse somewhere _inside_ the window, then
> >              press on Meta(same as ESC, for sawfish as for Emacs,
> >              right?) and then, pressing on e.g. Button1, be able
> >              to drag the window around.  If I can do this, then
> >              I can get to the bottom of the window by shoving it
> >              upward.
> >
> >              Andrea, and probably many others, can give me the
> >              exact instructions on how to do this.  And that will
> >              be my "Hello, World" moment in sawfish configuration!
> >
>
> The function you need to bind is "Move window interactively", the key
> should be "M-Button1-Click" (without quotes) and you should add it to
> the window context.
      I did exactly that.  As proof, see the Attached .png, which
      seems to be the same as yours, at least as far as the "Move
      window interactively" goes.

      And I move my cursor to my open iceweasel, click once to raise
      it.  Then I hold the Esc key, and try to move the iceweasel window
      by moving the mouse.  Nothing happens.

      Andrea, you are doubtless running out of patience.  I am
      starting to despair myself.

      I give, below my  .sawfish/custom   file.  Does it look
      OK?  I have written some Lisp code, using Bruno Haible's great
      CLisp, but I am far from being a Lisp expert.

Thanks for all the help so far.

Alan

(start)--------------------------
;; sawfish user customization -- do not edit by hand!
;; sawfish version 1.3.5.2, written Sat Jun 11 08:27:43 2011

(custom-set-keymap (quote window-keymap) (quote (keymap (raise-and-pass-through-click . "Button1-Click") (move-window-interactively . "M-Button1-Click") (popup-window-menu . "W-Button2-Click") (raise-lower-window . "W-Button3-Click") (lower-window . "W-Down") (raise-window . "W-Up"))))
(custom-set-keymap (quote global-keymap) (quote (keymap (cycle-windows . "W-TAB") (next-workspace . "W-Right") (previous-workspace . "W-Left"))))
(custom-set-typed-variable (quote default-frame-style) (quote Crux) (quote frame-style))
(custom-set-typed-variable (quote focus-mode) (quote enter-only) (quote symbol))
(custom-set-typed-variable (quote focus-windows-when-mapped) (quote ()) (quote boolean))
(custom-set-typed-variable (quote default-font) (quote ("Pango" . "Sans 14")) (quote font))
(custom-set-typed-variable (quote focus-click-through) (quote ()) (quote boolean))

                                 ------------------------(finish)

--
Alan McConnell :  http://patriot.net/users/alan
          If you don't know your rights, you don't have any.
          If it can't be abused, it's not freedom.


alan-sawficonfig.png (53K) Download Attachment

Re: Shrinking Vertical Size of Window

by Christopher Roy Bratusek-2 :: Rate this Message:

| View Threaded | Show Only this Message

Am 11.06.2011 20:12, schrieb Alan McConnell:

> On Sat, Jun 11, 2011 at 07:44:21AM +0200, Andrea Vettorello wrote:
>> On Fri, Jun 10, 2011 at 10:12 PM, Alan McConnell<alan@...>  wrote:
>>
>>>               Let me shoot for the following goal:  I'd like to
>>>               place my mouse somewhere _inside_ the window, then
>>>               press on Meta(same as ESC, for sawfish as for Emacs,
>>>               right?) and then, pressing on e.g. Button1, be able
>>>               to drag the window around.  If I can do this, then
>>>               I can get to the bottom of the window by shoving it
>>>               upward.
>>>
>>>               Andrea, and probably many others, can give me the
>>>               exact instructions on how to do this.  And that will
>>>               be my "Hello, World" moment in sawfish configuration!
>>>
>> The function you need to bind is "Move window interactively", the key
>> should be "M-Button1-Click" (without quotes) and you should add it to
>> the window context.
>        I did exactly that.  As proof, see the Attached .png, which
>        seems to be the same as yours, at least as far as the "Move
>        window interactively" goes.
>
>

Try W instead of M, (W-Button1-Click), also when Iceweasel is a
maximized window, you *can't* move it (unless you change the behaviour
for that).

If that's the case use the command "Resize window interactively" instead
of "Maximize window interactively".

Chris


Re: Shrinking Vertical Size of Window

by Alan McConnell :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, Jun 11, 2011 at 08:16:43PM +0200, Christopher Roy Bratusek wrote:

>
> >       I did exactly that.  As proof, see the Attached .png, which
> >       seems to be the same as yours, at least as far as the "Move
> >       window interactively" goes.
> >
> >
>
> Try W instead of M, (W-Button1-Click), also when Iceweasel is a
> maximized window, you *can't* move it (unless you change the
> behaviour for that).
     <G>  For sure!  I very seldom Maximize a window; I'm
            an Old Guy, with eye-sight not of the best, and so I have
            spent money on a fine Samsung 18" x 12" flat-panel display.
            Almost everything shows up well without Maximizing.

> If that's the case use the command "Resize window interactively"
> instead of "Maximize window interactively".
   Just carried out mission.  No soap; didn't work.

          Query:  What does W stand for/signify?  And maybe it is
          time to make a remark:  I detect a lot of intelligent
          energy going into making sawfish muy cool.  What about
          a User's manual, to help people with the Sawfish
          configurator and perhaps an intro to .sawfish/rc?  And,
          separately, a Programmer's Manual, showing some useful
          stuff that rep can do?  I make this remark, because it
          really cannot be that I am so stupid as to have to
          waste people's time here with such a low-level problem.
          Or so I believe<g>.

Alan

--
Alan McConnell :  http://patriot.net/users/alan
          If you don't know your rights, you don't have any.
          If it can't be abused, it's not freedom.

Re: Shrinking Vertical Size of Window

by Andrea Vettorello :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, Jun 11, 2011 at 8:12 PM, Alan McConnell <alan@...> wrote:

> On Sat, Jun 11, 2011 at 07:44:21AM +0200, Andrea Vettorello wrote:
>> On Fri, Jun 10, 2011 at 10:12 PM, Alan McConnell <alan@...> wrote:
>>
>> >              Let me shoot for the following goal:  I'd like to
>> >              place my mouse somewhere _inside_ the window, then
>> >              press on Meta(same as ESC, for sawfish as for Emacs,
>> >              right?) and then, pressing on e.g. Button1, be able
>> >              to drag the window around.  If I can do this, then
>> >              I can get to the bottom of the window by shoving it
>> >              upward.
>> >
>> >              Andrea, and probably many others, can give me the
>> >              exact instructions on how to do this.  And that will
>> >              be my "Hello, World" moment in sawfish configuration!
>> >
>>
>> The function you need to bind is "Move window interactively", the key
>> should be "M-Button1-Click" (without quotes) and you should add it to
>> the window context.
>      I did exactly that.  As proof, see the Attached .png, which
>      seems to be the same as yours, at least as far as the "Move
>      window interactively" goes.
>
>      And I move my cursor to my open iceweasel, click once to raise
>      it.  Then I hold the Esc key, and try to move the iceweasel window
>      by moving the mouse.  Nothing happens.
>

Sorry, I missed your question above. Nope, "Esc" and "Alt" are
considered different keys (i.e. not like Emacs), unless you configure
Sawfish to behave differently.

Keep in mind that some keymaps can use two Alt keys, the faster way to
check what keycode is passed is to use the "Grab" button.


--
Andrea

Re: Shrinking Vertical Size of Window

by Alan McConnell :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, Jun 12, 2011 at 10:57:43AM +0200, Andrea Vettorello wrote:

> On Sat, Jun 11, 2011 at 8:12 PM, Alan McConnell <alan@...> wrote:
> > On Sat, Jun 11, 2011 at 07:44:21AM +0200, Andrea Vettorello wrote:
> >> On Fri, Jun 10, 2011 at 10:12 PM, Alan McConnell <alan@...> wrote:
> >>
> >> >              Let me shoot for the following goal:  I'd like to
> >> >              place my mouse somewhere _inside_ the window, then
> >> >              press on Meta(same as ESC, for sawfish as for Emacs,
> >> >              right?) and then, pressing on e.g. Button1, be able
> >> >              to drag the window around.  If I can do this, then
> >> >              I can get to the bottom of the window by shoving it
> >> >              upward.
     Viva yo!  I have fooled around.  I have read some of the other
     commands.  I have discovered that M is the Alt key(I guess Andrea
     has been trying to tell me that<g>).  And I have added
      M-Button1-Move
     to my Sawfish Configurator, Context Window, and now when I place
     the mouse on a raised window, hold down my Alt key, and move
     the mouse with Button1, the window moves most satisfactorily.
     Needless to say, I am chuffed!

It remains to thank Andrea, and Chris, for their pokes and prods; without
their help I'd never have achieved my present understanding, and ability.

Best wishes to all!

Alan

--
Alan McConnell :  http://patriot.net/users/alan
     Someday I want to be rich. Some people get so rich they lose all
     respect for humanity. That's how rich I want to be. (Rita Rudner)