Discussion:
window titlebar
Maximilian W. Zeller
2009-08-05 15:33:14 UTC
Permalink
hi

1. i was wondering if it is possible to remove the window titlebar of
a specific floating window? maybe with defwinprop?

2. or maybe is it possible to make the titlebar of a floating window
fit its width?

any ideas?


greets from germany
max
Tuomo Valkonen
2009-08-05 16:00:07 UTC
Permalink
Post by Maximilian W. Zeller
1. i was wondering if it is possible to remove the window titlebar of
a specific floating window? maybe with defwinprop?
It can only be removed dynamically; _:set_mode('floating-alt')...
maybe... I don't remember if the titlebar is disabled for
the floating-alt style, and am not running X ATM; they've
managed to make Cygwin X crash constantly.
Post by Maximilian W. Zeller
2. or maybe is it possible to make the titlebar of a floating window
fit its width?
There's a patch that alters the way the width is calculated at
http://modeemi.fi/~tuomov/ion/patches.html . Not sure if it's
what you want.
--
Off the dope since 2009;
http://iki.fi/tuomov/b/archives/2009/07/21/T17_26_09/
Sam Mason
2009-08-05 17:30:21 UTC
Permalink
am not running X ATM; they've managed to make Cygwin X crash
constantly.
That's what you get for not using a proper operating system! :)
--
Sam http://samason.me.uk/
Tuomo Valkonen
2009-08-06 11:19:14 UTC
Permalink
Post by Sam Mason
That's what you get for not using a proper operating system! :)
Yes, on a proper operating system (instead of a half of one
running on another proper one), I'd be stuck to the 80x25
VGA console.

Random Cygwin brokenness (1.7 betas) is just the familiar
situation from Linux, where you're also stuck to using
unstable/experimental distributions, because the stable
megadistros provide too old non-core software and do not
run the newest third-party software without massive library
recompilation efforts. At least on Windows there's a stable
proper _core_ operating system underneath, running all the
latest software.
--
Be an early adopter! Beat the herd! Choose Windows today!
John Harrigan
2009-08-05 15:48:01 UTC
Permalink
Post by Maximilian W. Zeller
1. i was wondering if it is possible to remove the window titlebar of
a specific floating window? maybe with defwinprop?
2. or maybe is it possible to make the titlebar of a floating window
fit its width?
I acheive #2 by adding:
bar = "inside"

to the frame-floating style in my look.lua file.

My specific setup:

de.defstyle("frame-floating", {
based_on = "frame",
bar = "inside",
padding_pixels = 0,
highlight_pixels = 1,
shadow_pixels = 1,
spacing = 0,
})
Matthieu Moy
2009-08-05 15:49:14 UTC
Permalink
Post by Maximilian W. Zeller
hi
1. i was wondering if it is possible to remove the window titlebar of
a specific floating window? maybe with defwinprop?
defbindings("WMPlex.toplevel", {
kpress(META.."Escape", "toggle_tab(_)"),
})

and I can show/hide the titlebar with meta+escape.
--
Matthieu
Maximilian W. Zeller
2009-08-05 17:56:31 UTC
Permalink
thank you all ... these things helped a lot

i have another question though: Is there a possibility to set absolute
position for floating windows through defwinprop?

thanks in advance
max
Post by Matthieu Moy
Post by Maximilian W. Zeller
hi
1. i was wondering if it is possible to remove the window titlebar of
a specific floating window? maybe with defwinprop?
defbindings("WMPlex.toplevel", {
              kpress(META.."Escape", "toggle_tab(_)"),
           })
and I can show/hide the titlebar with meta+escape.
--
Matthieub
Post by Maximilian W. Zeller
2. or maybe is it possible to make the titlebar of a floating window
fit its width?
bar = "inside"
to the frame-floating style in my look.lua file.
de.defstyle("frame-floating", {
based_on = "frame",
bar = "inside",
padding_pixels = 0,
highlight_pixels = 1,
shadow_pixels = 1,
spacing = 0,
})
Ole Jørgen Brønner
2009-08-05 18:27:54 UTC
Permalink
http://modeemi.fi/~tuomov/ion-doc-3/ionconf/node4.html#SECTION00451000000000000000
might work (haven't tried it myself)?

On Wed, 05 Aug 2009 19:56:31 +0200, Maximilian W. Zeller
Post by Maximilian W. Zeller
thank you all ... these things helped a lot
i have another question though: Is there a possibility to set absolute
position for floating windows through defwinprop?
thanks in advance
max
Maximilian W. Zeller
2009-08-06 11:31:42 UTC
Permalink
i dont't quite get how to give absolute x/y position?!

i am looking for something like
position = { x = 100, y = 100 }

what i read in the documentation is how to manipulate size but
couldn't find anything to manipulate the position.
Post by Ole Jørgen Brønner
http://modeemi.fi/~tuomov/ion-doc-3/ionconf/node4.html#SECTION00451000000000000000
might work (haven't tried it myself)?
Post by Maximilian W. Zeller
thank you all ... these things helped a lot
i have another question though: Is there a possibility to set absolute
position for floating windows through defwinprop?
thanks in advance
max
Tuomo Valkonen
2009-08-06 16:38:34 UTC
Permalink
Post by Maximilian W. Zeller
i dont't quite get how to give absolute x/y position?!
i am looking for something like
position = { x = 100, y = 100 }
There isn't one in Ion3. I did add a winprop to ion3plus,
but all the documentation is the changelog entry.
(See also WGroup.attach docs.)

Fri Oct 24 20:25:20 FLE Daylight Time 2008 Tuomo Valkonen <tuomov-***@public.gmane.org>
* * Added attach_params winprop and auto_placement option.
The first, attach_params, is a table containing the same parameters that can
be passed to WGroup.attach. It is applied when a new frame would normally be
created for the window, as attach parameters of the frame. The parameters are
thus not applied when attaching a new window to an existing (tiled) frame, or
for attaching the window within the newly created frame.

The second, auto_placement, is a boolean option in the attach parameters,
and can be used to control whether application-supplied position is used,
or whether Ion should itself calculate a position for the window.
--
Stop Gnomes and other pests! Purchase Windows today!
http://iki.fi/tuomov/b/archives/2009/07/21/T17_26_09/
Ole Jørgen Brønner
2009-08-06 20:11:24 UTC
Permalink
Sorry, I miss-read the userpos part in the docs.

You can always do something like this with hooks (clientwin_do_manage_alt)
but it's not as clean.

(After reading tuomov's mail, I guess you should try ion3plus)

On Thu, 06 Aug 2009 13:31:42 +0200, Maximilian W. Zeller
Post by Maximilian W. Zeller
i dont't quite get how to give absolute x/y position?!
i am looking for something like
position = { x = 100, y = 100 }
what i read in the documentation is how to manipulate size but
couldn't find anything to manipulate the position.
Post by Ole Jørgen Brønner
http://modeemi.fi/~tuomov/ion-doc-3/ionconf/node4.html#SECTION00451000000000000000
might work (haven't tried it myself)?
On Wed, 05 Aug 2009 19:56:31 +0200, Maximilian W. Zeller
Post by Maximilian W. Zeller
thank you all ... these things helped a lot
i have another question though: Is there a possibility to set absolute
position for floating windows through defwinprop?
thanks in advance
max
Continue reading on narkive:
Loading...