You are not logged in.

#1 2012-04-03 06:16:25

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

[SOLVED] xmonad,virtualbox and xmobar

Hello everyone, i am having a little problem with xmonad configuration. i am running windows in virtualbox and everytime i open virtualbox, xmonad place it below xmobar . I just want xmonad to make it fulscreen overriding xmobar . or is there anyway to disable docking behavior of xmonad on any specific workspace so that i can "doshift" on VB. also same is happening with youtube in fullscreen.

by the way here is my xmonad.hs

--
--xmonad configuration file
--
import XMonad
import XMonad.Layout.Spacing  
import XMonad.Hooks.ManageDocks



myTerminal = "terminal"
--Layout

myLayout = tiled ||| Mirror tiled ||| Full  
  where  
      -- default tiling algorithm partitions the screen into two panes  
      tiled = Tall nmaster delta ratio  
   
      -- The default number of windows in the master pane  
      nmaster = 1  
   
      -- Default proportion of screen occupied by master pane  
      ratio = 2/3  
   
      -- Percent of screen to increment by when resizing panes  
      delta = 3/100  



-- Define amount and names of workspaces
myWorkspaces = ["1:Web","2:Music","3:Bash","4:Files","5","6","7","8","9"]




-- Whether focus follows the mouse pointer.
myFocusFollowsMouse :: Bool
myFocusFollowsMouse = False



--Main

main = do

		xmonad $ defaultConfig
			{	terminal				=	myTerminal
			,	modMask 			= 	mod4Mask
			,	borderWidth 			= 	2
			, 	normalBorderColor 	= 	"#FFFFFF"
			, 	focusedBorderColor 	= 	"#0000FF"
			,	workspaces 			= 	myWorkspaces
			, 	layoutHook 			= 	avoidStruts $ layoutHook defaultConfig
			, 	manageHook 		= 	manageHook defaultConfig <+> manageDocks
			,	focusFollowsMouse  	= 	myFocusFollowsMouse
			}
			

Last edited by illusionist (2012-04-03 07:46:31)


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#2 2012-04-03 06:33:04

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] xmonad,virtualbox and xmobar

Add "isFullscreen --> doFullFloat" to your manageHook. So in your case, that would become something like:

, manageHook = ( isFullscreen --> doFullFloat ) <+> manageHook defaultConfig <+> manageDocks

And some more general Xmonad config reading material to be found here.

Last edited by Gcool (2012-04-03 06:34:51)


Burninate!

Offline

#3 2012-04-03 06:51:49

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] xmonad,virtualbox and xmobar

thanks for reply Gcool

but i am getting error saying:-
doFullFloat and  isFullscreen ( not in scope)

is there anything i am doing wrong ?


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#4 2012-04-03 07:06:41

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] xmonad,virtualbox and xmobar

You'll probably have to add "import qualified XMonad.StackSet as W" to your xmonad.hs import section.


Burninate!

Offline

#5 2012-04-03 07:39:04

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] xmonad,virtualbox and xmobar

thanks Gcool your method worked !

but for

 doFullFloat and  isFullscreen ( not in scope) 

error

reading through xmonad config archive at haskel.org I found that you need to import

 import XMonad.Hooks.ManageHelpers (isFullscreen, isDialog,  doFullFloat, doCenterFloat) 

and that did the trick.

how to mark thread as [SOLVED]


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#6 2012-04-03 07:43:57

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] xmonad,virtualbox and xmobar

Glad to hear it's working. In order to mark your thread as solved, simply edit your original post and add [SOLVED] to the subject line.


Burninate!

Offline

Board footer

Powered by FluxBB