You are not logged in.

#351 2012-02-08 13:21:38

unexist
Member
From: Germany
Registered: 2008-05-13
Posts: 301
Website

Re: subtle - another tiling window manager

echo.unity wrote:

I was just going to use conky : )

I am not exactly sure, if that is more elegant. wink

Offline

#352 2012-02-11 01:55:11

echo.unity
Member
Registered: 2011-11-14
Posts: 68

Re: subtle - another tiling window manager

unexist wrote:
echo.unity wrote:

I was just going to use conky : )

I am not exactly sure, if that is more elegant. wink

Probably, I myself have no need for it but others do.

What do you suggest the best way to call a app like gmrun to show on the view it's called from?

Offline

#353 2012-02-11 02:28:02

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: subtle - another tiling window manager

@echo.unity - I asked a similar question before, and here was the response:

https://bbs.archlinux.org/viewtopic.php … 62#p952162

And the snippets page:

http://subforge.org/projects/subtle/wiki/Snippets

Offline

#354 2012-02-11 12:25:04

echo.unity
Member
Registered: 2011-11-14
Posts: 68

Re: subtle - another tiling window manager

anonymous_user wrote:

@echo.unity - I asked a similar question before, and here was the response:

https://bbs.archlinux.org/viewtopic.php … 62#p952162

And the snippets page:

http://subforge.org/projects/subtle/wiki/Snippets

thanks - i had read that months ago, completely forgot

Offline

#355 2012-02-22 16:04:03

sonkei
Member
From: Detroit,MI
Registered: 2009-04-06
Posts: 27

Re: subtle - another tiling window manager

i'm trying to figure out why my margin around clients stopped working recently. So im not sure if there is just something silly i've done there and not noticed or if something has changed in way margins work?

oppsie sorry.

Last edited by sonkei (2012-02-23 05:53:41)

Offline

#356 2012-02-22 18:45:54

unexist
Member
From: Germany
Registered: 2008-05-13
Posts: 301
Website

Re: subtle - another tiling window manager

sonkei wrote:

i'm trying to figure out why my margin around clients stopped working recently.  I dont think i've changed anything in my config (https://gist.github.com/1882498 - styles portion of subtle.rb). So im not sure if there is just something silly i've done there and not noticed or if something has changed in way margins work?

Please don't post stripped down configs and always include the version of subtle. Also, a forum isn't the right place for stuff like that, when you think that is a bug open a ticket and post the required information. wink

Update: I fixed this issue in r3187, was my fault, sorry. wink

Last edited by unexist (2012-02-23 22:05:34)

Offline

#357 2012-03-02 21:53:12

ioos
Member
Registered: 2011-01-25
Posts: 125

Re: subtle - another tiling window manager

Is there a way to make certain windows always on top of a view? For example, if I stick a urxvt window then go to my media view with VLC or Banshee, the term is on top. On that view, I'd prefer that those applications are always on top.

Last edited by ioos (2012-03-06 02:14:43)

Offline

#358 2012-03-02 21:55:37

ioos
Member
Registered: 2011-01-25
Posts: 125

Re: subtle - another tiling window manager

Also, I've been unable to view browser videos in fullscreen. They work in Openbox, but not subtle. Do I need to add something to my config to handle those specifically?

Offline

#359 2012-03-02 22:32:29

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

ioos wrote:

Also, I've been unable to view browser videos in fullscreen.

Do you specifically mean flash videos? Then yup, you need to add this to your config:

tag "flash" do
  match "<unknown>|plugin-container|exe|operapluginwrapper|npviewer.bin" 
  stick true
end

Have a peek over here: FAQ

Last edited by Earnestly (2012-03-02 22:39:34)

Offline

#360 2012-03-02 23:29:03

ioos
Member
Registered: 2011-01-25
Posts: 125

Re: subtle - another tiling window manager

Thanks Kaustic. That's exactly what I needed.

Offline

#361 2012-03-09 20:35:51

ioos
Member
Registered: 2011-01-25
Posts: 125

Re: subtle - another tiling window manager

ioos wrote:

Is there a way to make certain windows always on top of a view? For example, if I stick a urxvt window then go to my media view with VLC or Banshee, the term is on top. On that view, I'd prefer that those applications are always on top.

Should I use a grab to solve this?

Another solution would be if I  could "stick" windows to only two views, instead of all. Then urxvt would only be on my terms view and my "working" desktop view. Are either of these things possible with subtle?

Offline

#362 2012-03-09 21:55:39

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

Yes, you can achieve what you're after using subtle's Hooks and Subtlext.

Offline

#363 2012-03-11 09:17:07

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

Hello,

I am looking for a way to cycle through fullscreened centered clients via a grab ("A-Tab") like in other OS because I do cycle views with "W-Tab" and Tabs in Programs via "C-Tab" and this would make navigation simple for me.
since I am not into ruby, I tried it in a way like the cycling through gravities:

# Cycle throgh windows
grab "A-Tab",   [ :WindowLeft,  :WindowDown,  :WindowUp,    :WindowRight]
grab "A-S-Tab", [ :WindowRight, :WindowUp,    :WindowDown,  :WindowLeft]

There is no left or right window when all are centered, so it does not work.
I did not find something like ":ViewNext/:ViewPrev" for the clients.

How do I find a way to do that?

Offline

#364 2012-03-11 09:38:12

kyrylo
Member
From: Ukraine
Registered: 2011-11-16
Posts: 5

Re: subtle - another tiling window manager

farben.rausch wrote:

How do I find a way to do that?

Good morning!

You can try this:

 grab "A-Tab" do
   clients = Subtlext::Client.visible
 
   clients.last.instance_eval do
     focus
     raise
   end
 end
 
 grab "A-S-Tab" do 
 clients = Subtlext::Client.visible
 
   clients.first.instance_eval do                                                 
     lower                                                                        
   end
   clients.first.instance_eval do
     focus
   end                                                                            
 end

Other snippets can be found here: http://subforge.org/projects/subtle/wiki/Snippets

Offline

#365 2012-03-11 14:17:12

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

thank you kyrylo, that works great.

One more question:
I try to get skype showing up the way I want it, and now I am looking for the window roles of the chat windows and the main window. Xprop does not show any value for WM_WINDOW_ROLE, in fact, it does not even show the line with "WM_WINDOW_ROLE"

xprop
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x20
XdndTypeList(ATOM) = text/plain, UTF8_STRING, STRING, TEXT, COMPOUND_TEXT, application/skype.action
_NET_WM_USER_TIME(CARDINAL) = 39330974
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 4
SUBTLE_CLIENT_SCREEN(CARDINAL) = 0
SUBTLE_CLIENT_GRAVITY(CARDINAL) = 12
SUBTLE_CLIENT_FLAGS(CARDINAL) = 2
_NET_WM_STATE(ATOM) = _NET_WM_STATE_ABOVE
SUBTLE_CLIENT_TAGS(CARDINAL) = 524288
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 29360149
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	                                                

XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
_NET_WM_NAME(UTF8_STRING) = "-------- - Skype\342\204\242 (Beta)"
WM_CLIENT_LEADER(WINDOW): window id # 0x1c00008
_NET_WM_PID(CARDINAL) = 9526
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) = "username - Skype (Beta)"
WM_LOCALE_NAME(STRING) = "de_DE.ISO-8859-1"
WM_CLASS(STRING) = "skype", "Skype"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x1c00012
		window id # of group leader: 0x1c00008
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		user specified location: 362, 18
		program specified location: 362, 18
		user specified size: 716 by 880
		program specified size: 716 by 880
		program specified minimum size: 240 by 198
		window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "hostname"
WM_COMMAND(STRING) = { "skype" }

In various xmonad forums I see people with skype 2.1 (mine is 2.2) reporting they have role strings.

Now the question: why don't I have them and can I use their roles like:

Henrique_G._Abreu_at_http://osdir.com/ml/xmonad@haskell.org/2010-01/msg00159.html wrote:

> how can i handle them if role is empty?
Not possible, you must workaround with the props that are set by the app. That's weird, check if you're using the latest skype for linux, which is  2.1.0.81 I remember previous versions not setting windows roles accordingly. Anyway here are my xprop output on each skype window:WM_WINDOW_ROLE = "MainWindow"WM_WINDOW_ROLE = "Chats" WM_WINDOW_ROLE = "CallWindowForm"

I hope someone can answer this, although it is not a question about subtle directly wink

Offline

#366 2012-03-11 15:16:01

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

I try to get skype showing up the way I want it,

How exactly do you want it to show up?

(Sorry if I'm being dumb, but I'm not entirely sure why you need the role (or what for), it could also be that I'm unfamiliar with Skype under Linux.)

With your skype window open, run the following command:

subtler -cl

Last edited by Earnestly (2012-03-11 15:50:03)

Offline

#367 2012-03-11 15:38:14

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

I would like to have like the contact list on the right side (always) and the chatwindows use the left over space and arrange themselve via tiling so they all have the same size.
I tried to work around it with skypetab-ng from AUR that adds a tab-suport to skype and puts all into one basic window that I can put on center and maximize, but due to subtle loosing focus very often when using skype it is very hard to use skype and skypetab-ng.

Loosing focus seems to be the bigger problem now, is there any info how to snap back into subtle?
"Loosing focus" means for me: The current client on top is running, and I can intereact with it, but no subtle grab/command works anymore, I can not swich views or exec programs. I have to kill subtle in another getty and login again hmm

It happens when quitting skype or sometimes short time after starting skype. setting skype to "float true" seems to help - but not always.
I can not really trace the problem, because I do not always see when subtle stops.

I just activated logging in subtle an will try to reproduce it to get information, but if anyone knows the issue I would appreciate the help.

Edit:

subtler -cl
 0x1200050 - 0    0 x   16 + 1119 + 876        center -^---- skype (Skype)
 0x120000f - 0 1138 x   20 +  300 + 880        center -^---- skype (Skype)
 0x1000003 * 0    0 x   16 + 1440 + 884        center ------ terminator (Terminator)
  0xa00077 - 0    0 x   16 + 1436 + 880        center ------ Navigator (Firefox)

Last edited by farben.rausch (2012-03-11 15:53:22)

Offline

#368 2012-03-11 16:01:43

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

I may have missed it, but did you mention which version of subtle you're currently using?

Offline

#369 2012-03-11 16:11:14

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

the actual from repo "community", 0.10.3008
I am now installing the subtle-hg one from AUR to see if the problem is the same.

Offline

#370 2012-03-11 16:17:49

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

tag "skype" do
  match "skype"
  gravity :right33
end

tag "skype_chat" do
  match :name => "*Chat"
  gravity :left66
 end

Something like that?

# [*match*]      This property adds matching patterns to a tag, a tag can have
#                more than one. Matching works either via plaintext, regex
#                (see man regex(7)) or window id. Per default tags will only
#                match the WM_NAME and the WM_CLASS portion of a client, this
#                can be changed with following possible values:
#
#                [*:name*]      Match the WM_NAME
#                [*:instance*]  Match the first (instance) part from WM_CLASS
#                [*:class*]     Match the second (class) part from WM_CLASS
#                [*:role*]      Match the window role
#                [*:type*]      Match the window type
#
#                Examples: match instance: "urxvt"
#                          match [:role, :class] => "test"
#                          match "[xa]+term"

Offline

#371 2012-03-11 16:24:05

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

xprop wrote:

WM_NAME(STRING) = "user|blabla - Skype Chat"

so you say it will work because "Chat" is in the WM_NAME all Chat windows will be arranged to left66?

that would be very nice smile

Offline

#372 2012-03-11 16:31:40

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

There's only one way to find out. tongue

Offline

#373 2012-03-11 17:24:57

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

hmm....
I got:

#Skype
gravity :left75,         [   0,   0,  75, 100 ]
gravity :right25,        [  75,   50,  25, 100 ]

#Skype
tag "skype_chat" do
  match :name => "*Chat"
  gravity :left75
 end
tag "skype_main" do
  match :name => "myusername*"
  gravity :right25
end

view "skype" do
  match "skype_.*"
  dynamic true
end

The "Skype" String is in both Windows, in the contact list and in the chat window, but the WM_NAME of the contact list has myusername in it.
when doing so skype is not placed in its view "skype".   The code: [match "skype_.*"] I copied from the gimp-view, that behaves the same and works (still the default settings of the original subtle.rb)

Now: Skype is startet maximized, contact list and chat window, and both on the default screen => looks like that did not work... sad

Additional the two xprop
Chat window:

 xprop 
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 0
SUBTLE_CLIENT_SCREEN(CARDINAL) = 0
SUBTLE_CLIENT_GRAVITY(CARDINAL) = 12
SUBTLE_CLIENT_FLAGS(CARDINAL) = 0
_NET_WM_STATE(ATOM) = 
SUBTLE_CLIENT_TAGS(CARDINAL) = 2
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x2
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 18874533
_NET_WM_USER_TIME(CARDINAL) = 52150099
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	                                                
//LOGO removed              
	                                                

XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
_NET_WM_NAME(UTF8_STRING) = "usr|blabla - Skype\342\204\242 Chat"
WM_CLIENT_LEADER(WINDOW): window id # 0x1200008
_NET_WM_PID(CARDINAL) = 22549
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) = "usr|blabla - Skype Chat"
WM_LOCALE_NAME(STRING) = "de_DE.ISO-8859-1"
WM_CLASS(STRING) = "skype", "Skype"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x12000a2
		window id # of group leader: 0x1200008
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		user specified location: 0, 16
		program specified location: 0, 16
		user specified size: 1119 by 876
		program specified size: 1119 by 876
		program specified minimum size: 500 by 300
		window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "myhostname"
WM_COMMAND(STRING) = { "skype" }

and contact list

xprop 
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x2
_NET_WM_USER_TIME(CARDINAL) = 52149584
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 0
SUBTLE_CLIENT_SCREEN(CARDINAL) = 0
SUBTLE_CLIENT_GRAVITY(CARDINAL) = 12
SUBTLE_CLIENT_FLAGS(CARDINAL) = 0
_NET_WM_STATE(ATOM) = 
SUBTLE_CLIENT_TAGS(CARDINAL) = 2
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 18874389
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	                                                
	                                                
//LOGO removed
	                                                


XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
_NET_WM_NAME(UTF8_STRING) = "myusername - Skype\342\204\242 (Beta)"
WM_CLIENT_LEADER(WINDOW): window id # 0x1200008
_NET_WM_PID(CARDINAL) = 22549
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) = "myusername - Skype (Beta)"
WM_LOCALE_NAME(STRING) = "de_DE.ISO-8859-1"
WM_CLASS(STRING) = "skype", "Skype"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x1200012
		window id # of group leader: 0x1200008
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		user specified location: 0, 16
		program specified location: 0, 16
		user specified size: 1436 by 880
		program specified size: 1436 by 880
		program specified minimum size: 240 by 198
		window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "myhostname"
WM_COMMAND(STRING) = { "skype" }

Offline

#374 2012-03-11 19:58:17

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: subtle - another tiling window manager

Sorry for not knowing more, but I assume you tried match "skype_*"?

It seems matching on :name doesn't seem to work very well. Either I'm not understanding how the regex works or it's bugged, but it should look for "WM_NAME" as indicated in the comments.

Last one, try: (it should match against both WM_CLASS/NAME/etc.)

#Skype
tag "skype_chat" do
  match "*Chat"
  gravity :left75
 end
tag "skype_main" do
  match "myusername*"
  gravity :right25
end

Last edited by Earnestly (2012-03-11 20:00:42)

Offline

#375 2012-03-12 03:20:13

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

Re: subtle - another tiling window manager

Kaustic wrote:

Sorry for not knowing more, but I assume you tried match "skype_*"?

jop... did that...

but it gets worse hmm I changed to subtle-hg from AUR because its a (I was told) stable newer version. After short editing of the configuration file (subtle.rb) I tried to run it, but all I got was
a crash back to SLIM.

"compiling" works fine:

subtle -k
ruby: warning: already initialized constant TMP_RUBY_PREFIX
Using config `~/.config/subtle/subtle.rb'
Syntax OK

I am running subtle via .xinitrc

exec ck-launch-session subtle &> ~/logs/subtle.log

Log for subtle:

ruby: warning: already initialized constant TMP_RUBY_PREFIX
/usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so: warning: already initialized constant ISO_8859_1
<ERROR> Cannot find a font definition for style `title'
subtle 0.10.3187 - Copyright (c) 2005-2012 Christoph Kappel
Released under the GNU General Public License
Compiled for X11R0 and Ruby 1.9.1
Display (:0.0) is 1440x900
Running on 1 screen(s)
Using config ~/.config/subtle/subtle.rb'
<WARNING> Unknown option `:font'
<WARNING> Unknown option `:font'
<WARNING> Unknown option `:separator'

Does this Error keep me from starting subtle?
"<ERROR> Cannot find a font definition for style `title'"
I am pretty sure I did not have it with subtle 0.10.3008. And what about this warnings?

Offline

Board footer

Powered by FluxBB