You are not logged in.

#1 2009-08-23 17:34:16

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

xmonad and shrinkText

I decided to give xmonad a whirl.

I fell in love with the run dialog, btw.

But my issue is that I want the windows to have their own titles.  It's handier for me to be able to look at the title of something that's compiling and be able to tell where it is in the list of things that are being built.

So.....
I have imported  XMonad.Layout.SimpleDecoration into my file.

After putting in the  appropriate line in my layout :  simpleDeco shrinkText defaultTheme

well,  none of my colors are being read, and the text is smaller than I want it to be.

myLayout = im $ normal where
     normal =  layoutHints $ simpleDeco shrinkText defaultTheme (wideLayout ||| basicLayout)
     im     = onWorkspace "Pidgin" imLayout

-- myTheme
myTheme = defaultTheme
    { fontName = "xft:LIberation Mono-20"
    , activeColor = "#00ff00"
    , inactiveColor = "#ff00ff"
    , urgentColor = "#ffff00"
    , activeBorderColor = "#00ff00"
    , inactiveBorderColor = "#ff0000"
    , urgentBorderColor = "#ffff00"
    , activeTextColor = "#00cc00"
    , inactiveTextColor = "#ff0000"
    , urgentTextColor = "#aaaa00"
    , decoWidth = 500
    , decoHeight = 22
    }

I'm not sure what I've done wrong here, and this is only part of the layout of my xmonad.hs.

I can post the entire thing if you want.


Knute

Offline

#2 2009-08-23 18:21:14

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: xmonad and shrinkText

xft:LIberation Mono-20

Change your upper case 'I' to an 'i' in Liberation. That may help with the font problem.

Offline

#3 2009-08-23 18:44:59

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: xmonad and shrinkText

you also forgot to call your theme:

normal =  layoutHints $ simpleDeco shrinkText defaultTheme (wideLayout ||| basicLayout)

should probably be:

normal =  layoutHints $ simpleDeco shrinkText myTheme (wideLayout ||| basicLayout)

/edit: though, i just tried to add my own theme to my tabbed layout and it's not respecting it, always just uses defaultTheme... not sure why.

/edit two: just found on #xmonad, mod-shift-space to 'reset' the new layouts, that made my theme settings take effect.  (thanks vav)

Last edited by brisbin33 (2009-08-23 19:24:45)

Offline

#4 2009-08-23 19:24:43

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: xmonad and shrinkText

Thanks.  I noticed the mispelling in the font name after I posted.

After calling it, the theme is showing up.   Very ugly, because I was just putting values in to get it to change! smile

Thanks alot.


Knute

Offline

Board footer

Powered by FluxBB