You are not logged in.

#1 2010-11-01 21:27:03

valvet
Member
From: Denmark
Registered: 2009-06-06
Posts: 147

[SOLVED] xmonad scratchpad and urxvt

Hi

I set up this XMonad.Util.Scratchpad terminal, to launch my default console (urxvt), but it doesn't seem to inherit my Xdefaults settings when it's launched.

Launching a terminal normally works fine, but when it's run through scratchpadSpawnActionTerminal it's just white.

Screenshot
vNjBkaQ

Relevant parts

-------------------------------------------------------------------------------
-- Keys/Button bindings --
myModmask = mod4Mask
scratchPad = scratchpadSpawnActionTerminal myTerminal
--
-- Terminal
--
myTerminal :: String
myTerminal = "urxvtc"
, manageHook          = manageHook defaultConfig <+> manageSpawn <+> myManageHook <+> manageScratchPad
, ((modMask, xK_s                  ), scratchPad)
--
-- Scratchpad
--
manageScratchPad :: ManageHook
manageScratchPad = scratchpadManageHook (W.RationalRect l t w h)

  where

    h = 0.1     -- terminal height, 10%
    w = 1       -- terminal width, 100%
    t = 1 - h   -- distance from top edge, 90%
    l = 1 - w   -- distance from left edge, 0%

Ideas?

EDIT Ok so, if anyone runs into this problem.. fix is changing your urxvt definitions in Xdefaults to use the className of URxvt instead (URxvt*whatever)

Last edited by valvet (2010-11-01 22:51:58)

Offline

#2 2010-11-01 22:35:04

valvet
Member
From: Denmark
Registered: 2009-06-06
Posts: 147

Re: [SOLVED] xmonad scratchpad and urxvt

Hmm.

It appears that the Scratchpad thingie is altering the name of the urxvt client. Running xprop, results in:

michael@rawr ~> xp
WM_CLASS(STRING) = "scratchpad", "URxvt"
WM_CLASS(STRING) = "NAME", "CLASS"

^ from the Scratchpad terminal..

Running it from a normal launched terminal:

xpmichael@rawr ~> xp
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_CLASS(STRING) = "NAME", "CLASS"

Now, my settings in Xdefaults are specified with lowercase names, if I do URxvt* it works - and also specifying them as scratchpad*settingHere.

But question is, why does it alter the name of the client and how do I get it to stop doing that.. I don't want to specify my settings using uppercase names.

Thanks.

Offline

#3 2013-03-09 07:31:48

fawkes5
Member
From: Canada
Registered: 2012-12-23
Posts: 84

Re: [SOLVED] xmonad scratchpad and urxvt

Hey valvet, i really like the screenshot you posted, your statusbar is quite beautiful. Are you using dzen or xmobar? Would you mind posting the relavent config so i could attempt to replicate such beauty? Thanks!

Offline

#4 2013-03-09 08:19:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] xmonad scratchpad and urxvt

Please don't necrobump threads; particularly solved ones.
https://wiki.archlinux.org/index.php/Fo … Bumping.27


If you want info, email the OP.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB