Re: xmonad Digest, Vol 37, Issue 4

Hi! Thanks very much for your comments :) I think it's OK to change the button. Really, I was not very sure of how a "menu" button should look, so I drew the first thing that came to my mind. And your icon is more sensible for a "menu" button than mine. I'm now looking for some other ways to improve the image of the title bar, maybe using real images and backgrounds instead of list of pixels. However, I'm having some trouble thinking how XMonad could locate the image files in the disk. Does anyone have an idea about this?
Date: Fri, 2 Apr 2010 19:59:08 +0200 From: "Jan Vornberger"
Subject: Re: [xmonad] Image buttons in title bars To: xmonad@haskell.org Message-ID: <20100402175908.GA23701@archer.localdomain.org> Content-Type: text/plain; charset="us-ascii" Hi Alejandro!
Hi, I've implemented a way to show not only text buttons in titlebars but also image buttons. I attach a patch with the neccessary code, basically some extensions to XMonad.Util.XUtils and XMonad.Layout.Decoration, and a theme which uses
On Wed, Mar 31, 2010 at 11:48:27AM +0200, Alejandro Serrano Mena wrote: the
code: XMonad.Layout.ImageButtonDecoration.
I had some time now to play with that patch. Cool stuff! Nice that you made something like that work. I'm in favor of applying it, but it touches quite a few places, so I will wait a few days to see if anyone objects (?).
I'm thinking of using this in Bluetile. I like your images for the buttons! However, for the menu button, I would prefer this image (somewhat trying to symbolize a window with a titlebar):
menuButton' = [[1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,0,0,0,0,0,0,1,1], [1,1,0,0,0,0,0,0,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1]]
How do you feel about that? I'm attaching a patch if you'd like to try it out.
Regards! Jan

On Fri, Apr 02, 2010 at 09:15:59PM +0200, Alejandro Serrano Mena wrote:
I'm now looking for some other ways to improve the image of the title bar, maybe using real images and backgrounds instead of list of pixels. However, I'm having some trouble thinking how XMonad could locate the image files in the disk. Does anyone have an idea about this?
I think getDataFileName and/or getDataDir provided by Cabal (by importing Paths_xmonad_contrib) is what you are looking for. If you list those image files under the 'data-files:' category of xmonad-contrib's cabal file that should give you the path to where they have been installed on the system. See the cabal manual for more information: http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.ht... By the way: Since you are apparently using decorations, what is your experience with them in general? Are you on a dual-head setup or just a single monitor? Because the decoration code really needs some work, I'm afraid. Sometimes I have problems with 'left-over' title bars that won't disappear and such things. I reckon there aren't many people on this list that are using decoration, are there? Cheers! Jan

Hello, On Mon, Apr 05, 2010 at 04:03:52PM +0200, Jan Vornberger wrote:
By the way: Since you are apparently using decorations, what is your experience with them in general? Are you on a dual-head setup or just a single monitor? Because the decoration code really needs some work, I'm afraid. Sometimes I have problems with 'left-over' title bars that won't disappear and such things. I reckon there aren't many people on this list that are using decoration, are there?
I used to use them (for several months) and have never seen any leftover title bar. It just worked. I used them only in tabbed and floating layouts and approximately month ago I dropped them in favor of a screen's alwaylastline-like list of windows. -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/

On Mon, Apr 05, 2010 at 04:03:52PM +0200, Jan Vornberger wrote:
By the way: Since you are apparently using decorations, what is your experience with them in general? Are you on a dual-head setup or just a single monitor? Because the decoration code really needs some work, I'm afraid. Sometimes I have problems with 'left-over' title bars that won't disappear and such things. I reckon there aren't many people on this list that are using decoration, are there?
Although the question was not addressed to me... :) Not sure if the problem is with 'Layout.Decoration' or specifically with 'Layout.Tabbed' but : In a 'tabbed' workspace, switching from a "normal" application to a "transparent" urxvt is slow (1-2 seconds). On the other hand, switching between 2 (undecorated) workspaces containing a transparent urxvt is almost instantanous. I'm not using urxvt with transparency anymore, because i like tabbed more than transparency :p Regards, Alexandre, a verry happy XMonad user !
participants (4)
-
Alejandro Serrano Mena
-
Alexandre
-
Jan Vornberger
-
Tomáš Janoušek