You are not logged in.

#1 2009-12-13 10:06:52

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Why cannot i get the window class ?

%cat test.R
x <- read.csv("000301.csv")
matplot(x[,1],x[,-1],type="l")

In R
> source("test.R")

The drawing windows is displayed but not floating in xmonad. So i want to get its window class using xprop
%xprop| grep -i class

When clicking the drawing window, xprop outputs nothing ! (BTW, The drawing window can be floated by using mouse+modKey)

Sincerely!


e^(π⋅i) + 1 = 0

Offline

#2 2009-12-13 11:51:43

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: Why cannot i get the window class ?

I don't know enough about ruby (I hop that's what it is, haha) to even run the program, but do you have to set a class from within the program? I think I had to do that with a C++ program I made

Offline

#3 2009-12-14 00:38:06

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Re: Why cannot i get the window class ?

It is not ruby but R. http://www.r-project.org/


e^(π⋅i) + 1 = 0

Offline

#4 2009-12-16 01:01:53

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Re: Why cannot i get the window class ?

Using xprop, i can get its wm_name
%xprop|grep -i wm_name
WM_NAME(STRING) = "R Graphics: Device 2 (ACTIVE)"

In myManageHook, i add the following line:

[name  =? n  --> doCenterFloat | n <- myNames]
name = stringProperty "WM_NAME"
myNames   = ["bashrun","Google Chrome Options","R Graphics: Device 2 (ACTIVE)"]

But it doesnot work sad


e^(π⋅i) + 1 = 0

Offline

Board footer

Powered by FluxBB