fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.35k stars 212 forks source link

Rule for WSL (bash mode) / XMING on windows #166

Open lweglarczyk opened 6 years ago

lweglarczyk commented 6 years ago

Searching for an answer on internet i've stumbled upon this: https://github.com/fuhsjr00/bug.n/issues/105

What I'm facing is: using bug.n with WSL (bash mode - debian flavor from microsoft store) and xming (to use urxvt). What I want to achieve is: beeing able to control urxvt window with bug.n

What I have in config.ini is (I've tried xming and vcxsrv):

  Config_rule=Xming;.*;;1;0;0;0;0;0;
  Config_rule=XWinrc;.*;;1;0;0;0;0;0;
  Config_rule=VcXsrv;.*;;1;0;0;0;0;0;

And - none of the above is working as expected.

What can I do to debug my problem?

-- regards, Lukas

joten commented 6 years ago

I had a look. -- It seems Xming is run as administrator and the Xming window class is "Xming X", therefor adding Config_rule=Xming X;.*;;1;0;0;0;0;0; to your Config.ini and running bug.n as administrator should solve the issue. Do not forget to "restart the session" (Config_autoSaveSession=ask or Config_autoSaveSession=off), if you change the configuration while still having an open Xming window.

lweglarczyk commented 6 years ago

indeed - it is working right now. Thank you very much!

Could you tell me - how did you manage to get the window class for xming? how to search for such things? (for future problems :) )

Thanks again,

-- regards, Lukas

joten commented 6 years ago

WinI is the default hotkey for getting the active window's information (Manager_getWindowInfo). Though, I am not running bug.n as an administrator, and when I first tried the hotkey, it opened the Windows Settings, but after running bug.n as an administrator the hotkey the function was executed in the right context and yielded the information via a pop-up window.