Jump to content

waimea configuration


beesea
 Share

Recommended Posts

is there a way to set my action file so that an unfocused window receives a mouse click? is it even possible? for example, if i click over a link in an unfocused browser window, the window becomes focused but the browser doesn't recognize the click. in this case i would need two clicks, one to focus the window and one to follow the link.

 

i'll have edited my action file exactly to my liking, pending this one little problem

Link to comment
Share on other sites

doesn't sound possible, i don't think. because for a window to perform an action, it first needs the focus. placing this in one click just doesn't seem like a possibility, but i could be wrong. although it may be something that needs to be put in the actual code for waimea...?

Link to comment
Share on other sites

I know some of the desktop environments & window managers have a focus model where moving a mouse over a window focuses it. I forget what it's called.... perhaps "sloppy focus"?

i prefer a click-to-focus system, so that doesn't apply to my problem.

Have you looked in;

man waimea

of course! :wink:

that's where to go to find out how to edit your action files in the first place. however, the man page doesn't explain how to do specific things like that; it just says what does what but doesn't tell you how put it all together.

Link to comment
Share on other sites

In Sawfish there in an option on Focus behavior:

 

'Does Click-to-Focus pass the click through to the window?'

 

Is there not something like that in Waimea?

 

P.S. Don't I know qnr as 'tross, the million posts a day Linux user' from the old boards? What happened? ;-)

Link to comment
Share on other sites

Hiya Steve/Omar - yup, it's me. I've just been hopping hither & yon about the country, messing with different distros, things like that. And I say this all in the strictest waimea configuration sense, of course - so I can't be accused of topic drift :)

Link to comment
Share on other sites

If understand correctly, it's click-to-focus you want. Do you have these?

 

/usr/share/waimea/actions

action

action.click-to-focus

action.no-mouse

action.non-opaque

action.sloppy-focus

 

if so rename action, and then rename action.click-to-focus to action. Restart waimea and you'll have it (works for me). It's late so I haven't investigayed as to the diff that enables the functions but.....

 

If you don't have it maybe you used the tarball?....I used the waimea.rpm....here it is;

DEF globalKeyBindings {

  TaskSwitcher               : KeyPress = Tab & Alt_L,

  MenuRemapFocused(rootmenu) : KeyPress = Escape & Control_L

}



DEF defaultAllWindows {

  Raise                  : ButtonPress = Button1 & Alt_L,

  Focus                  : ButtonPress = Button1 & Alt_L,

  Focus                  : ButtonPress = Button3 & Alt_L,

  StartOpaqueMove        : ButtonPress = Button1 & Alt_L,

  StartOpaqueResizeRight : ButtonPress = Button3 & Alt_L,

  Lower                  : ButtonPress = Button2 & Alt_L,

  EndMoveResize          : ButtonRelease = Button1 & MoveResizeMask,

  EndMoveResize          : ButtonRelease = Button3 & MoveResizeMask

}



DEF defaultAllDecor {

defaultAllWindows,

  Raise             : ButtonPress = Button1 & !Alt_L,

  Lower             : ButtonPress = Button2 & !Alt_L,

  MenuRemap(window) : ButtonPress = Button3 & !Alt_L,

  MenuUnmap(window) : ButtonPress = Button1 & !Alt_L,

  MenuUnmap(window) : ButtonPress = Button2 & !Alt_L

}



DEF defaultAllTitle {

  defaultAllDecor,

  Focus           : ButtonPress = Button1 & !Alt_L,

  Focus           : ButtonPress = Button3 & !Alt_L,

  StartOpaqueMove : ButtonPress = Button1 & !Alt_L,

  ToggleShade     : DoubleClick = Button1 & !Alt_L

}



window.frame { defaultAllDecor }

window.title { defaultAllTitle }

window.label { defaultAllTitle }

window.handle { defaultAllDecor }

window.leftgrip { 

  defaultAllWindows,

  Focus                 : ButtonPress = AnyButton & !Alt_L,

  StartOpaqueResizeLeft : ButtonPress = Button1 & !Alt_L

}

window.rightgrip { 

  defaultAllWindows,

  Focus                  : ButtonPress = AnyButton & !Alt_L,

  StartOpaqueResizeRight : ButtonPress = Button1 & !Alt_L

}

window.button0 {      

  defaultAllWindows,

  Focus : ButtonPress = AnyButton & !Alt_L,

  ToggleShade : ButtonRelease = Button1

}

window.button1 { 

  defaultAllWindows,

  Focus : ButtonPress = AnyButton & !Alt_L,

  Close : ButtonRelease = Button1

}

window.button2 {

  defaultAllWindows,

  Focus          : ButtonPress = AnyButton & !Alt_L,

  ToggleMaximize : ButtonRelease = Button1,

  Raise          : ButtonRelease = Button1

}

window.passiveclient { 

  Raise            : ButtonPress = Button1,

  Focus            : ButtonPress = Button1,

  Focus            : ButtonPress = Button3,

  defaultAllWindows,

  MoveToSmartPlace : MapRequest & !Control_L,

  Raise            : MapRequest,

  StartMove        : MapRequest & Control_L,

  Focus            : MapRequest & Control_L  

}

window.activeclient {

  *Raise                   : ButtonPress = Button1,

  defaultAllWindows,

  ToggleShade              : KeyPress = F1 & Alt_L,

  ToggleMaximize           : KeyPress = F2 & Alt_L,

  Raise                    : KeyPress = F2 & Alt_L,

  MenuRemapFocused(window) : KeyPress = F3 & Alt_L,

  Close                    : KeyPress = F4 & Alt_L,

  Kill                     : KeyPress = F10 & Alt_L,

  globalKeyBindings   

}



root {

  MenuRemap(rootmenu) : ButtonPress = Button3,

  MenuUnmap(rootmenu) : ButtonPress = Button1,

  StartViewportMove   : ButtonPress = Button2,

  EndMoveResize       : ButtonRelease = Button2 & MoveResizeMask,

  globalKeyBindings

}



westedge { ViewportLeft : EnterNotify }



eastedge { ViewportRight : EnterNotify }



northedge { ViewportUp : EnterNotify [250 : LeaveNotify] }



southedge { ViewportDown : EnterNotify [250 : LeaveNotify] }



DEF allMenuWindows {

  Raise           : ButtonPress = Button1 & Alt_L,

  StartOpaqueMove : ButtonPress = Button1 & Alt_L,

  UnLink          : ButtonPress = Button1 & Alt_L,

  EndMoveResize   : ButtonRelease = Button1 & MoveResizeMask

}



DEF allMenuItems {

  allMenuWindows,

  Exec         : ButtonRelease = AnyButton,

  Func         : ButtonRelease = AnyButton,

  NextItem     : KeyPress = Tab,

  NextItem     : KeyPress = Down,

  PreviousItem : KeyPress = Up,

  UnmapSubs    : KeyPress = Left,

  UnmapFocused : KeyPress = Left,

  UnmapTree    : KeyPress = Escape,

  Exec         : KeyPress = Return,

  Func         : KeyPress = Return

} 



menu.title {

  allMenuWindows,

  Raise           : ButtonPress = Button1,

  UnLink          : ButtonPress = Button1 & !Alt_L,

  StartOpaqueMove : ButtonPress = Button1 & !Alt_L,

  UnmapSubs       : ButtonPress = Button3,

  Unmap           : ButtonPress = Button3

}

menu.item {

  allMenuItems,

  UnmapSubs    : EnterNotify,

  UnmapTree    : ButtonRelease = AnyButton,

  UnmapFocused : KeyRelease = Alt_L,

  Func         : KeyRelease = Alt_L,

  UnmapTree    : KeyPress = Return

}

menu.checkbox {

  allMenuItems,

  UnmapSubs : EnterNotify,

  Exec      : KeyPress = space,

  Func      : KeyPress = space

}

menu.sub {

  allMenuItems,

  MapSubOnly      : EnterNotify,

  RemapSub        : ButtonPress = AnyButton,

  RemapSubFocused : KeyPress = Right,

  RemapSubFocused : KeyPress = Return

}



n/^desktop_window$/.passiveclient {

  MenuRemap(rootmenu)  : ButtonPress = Button3 & !Control_L,

  StartViewportMove    : ButtonPress = Button2 & !Control_L,

  *MenuUnmap(rootmenu) : ButtonPress = Button1,

  Focus                : ButtonPress = Button1,

  EndMoveResize        : ButtonRelease = Button2 & MoveResizeMask

}



n/^desktop_window$/.activeclient {

  globalKeyBindings,

  MenuRemap(rootmenu)  : ButtonPress = Button3 & !Control_L,

  StartViewportMove    : ButtonPress = Button2 & !Control_L,

  *MenuUnmap(rootmenu) : ButtonPress = Button1

}



n/^desktop_window$/.frame {}



n/^panel_window$/.passiveclient {

  *Focus : ButtonPress = Button1

}



n/^panel_window$/.activeclient {

  globalKeyBindings,

  EndMoveResize : ButtonRelease = Button1 & MoveResizeMask,

  EndMoveResize : ButtonRelease = Button3 & MoveResizeMask

}



n/^panel_window$/.frame {}



n/^KDE Desktop$/.passiveclient {

  MenuRemap(rootmenu)  : ButtonPress = Button3 & !Control_L,

  StartViewportMove    : ButtonPress = Button2 & !Control_L,

  *MenuUnmap(rootmenu) : ButtonPress = Button1,

  Focus                : ButtonPress = Button1,

  EndMoveResize        : ButtonRelease = Button2 & MoveResizeMask

}



n/^KDE Desktop$/.activeclient {

  globalKeyBindings,

  MenuRemap(rootmenu)  : ButtonPress = Button3 & !Control_L,

  StartViewportMove    : ButtonPress = Button2 & !Control_L,

  *MenuUnmap(rootmenu) : ButtonPress = Button1

}



n/^KDE Desktop$/.frame {}



n/^kicker$/.passiveclient {

  *Focus : ButtonPress = Button1

}



n/^kicker$/.activeclient {

  globalKeyBindings,

  EndMoveResize : ButtonRelease = Button1 & MoveResizeMask,

  EndMoveResize : ButtonRelease = Button3 & MoveResizeMask

}



n/^kicker$/.frame {}

Save it as plain text file action. Hope it works for ya!

Link to comment
Share on other sites

yeah, i have those action files but the problem still remains. i used the action.click-to-focus and another click-to-focus action file i got from the waimea web page. the click to focus part works fine, but the click still doesn't get received by the program.

Link to comment
Share on other sites

The only one used is the one named "action".

on my machine, action is just a symlink to one of the action.* files. i just changed the link to point to the one i wanted to use.

Maybe I don't understand what you mean

i can't think of a good way to explain it so maybe i can help you see it. go into another window manager (that uses a click-to-focus model) and open up a browser window and some other window. move things around so that you can easily see both windows and make sure the browser is the window that's not focused. now if you click on a link in the unfocused browser window, the browser will become active and follow the link. in waimea, however, i'd have to click twice; once to focus the browser, and again to follow the link. this is what i mean by the program not receiving the click. does that make more sense? does anyone else even have that problem?

Link to comment
Share on other sites

:oops: heh...started using konq recently and I didn't notice action was a symlink because of the icon I'm using.. :oops:

 

O.K.! That's exactly what I thought you were trying to say. It may be because I renamed the symlink action to actiondef and then renamed action.click-to-focus to action, but when I did this, and then exactly what you said to do, running opera and konq, it worked. Opera focused and followed the link with one click.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...