You are not logged in.

#1 2011-10-27 22:21:42

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

xmonad layout & doShift prob when displaying ws names w/ indiv. font

Hi all!

I've found a nice symbol font for displaying my xmonad workspace names. All stuff is compiling fine, but I can't shift programs automatically to certain workspaces, and specific layouts are ignored, e.g. again... gimp: Whereever it starts, it is displayed "Mirror tiled" (first of my general layouts), and it's layout can't be changed (ntl ppLayout doesn't show the gimp-icon probably because of this).

My full xmonad.hs so far:

--- nexus7's  xmonad.hs 

-------------------------------------------
---	   I   Imported Modules		---
---	  II   Main Functions		---
---	 III   Workspace Naming		---
---	  IV   Window Management	---
---	   V   Workspace Layout Configs	---
---	  VI   Statusbars		---
---	 VII   Key bindings		---
---     VIII   Mouse Bindings		---
-------------------------------------------
--- ... & probably few more to come

--------------------------------------------------------------------------------------------------------------------------------------
---	   I   Imported Modules

import	XMonad
import	qualified Data.Map as M		-- `M.fromList'
import	qualified XMonad.StackSet as W	-- manageHook rules

import	XMonad.Actions.CycleWindows	-- classic alt-tab
import	XMonad.Actions.CycleWS		-- cycle workspaces; q-- toggle last ws 
import	XMonad.Actions.DwmPromote	-- swap focus with master (or back)

import	XMonad.Hooks.DynamicLog		-- statusbar 
import	XMonad.Hooks.ManageDocks	-- dock/tray management 
import	XMonad.Hooks.UrgencyHook	-- window alert bells
import	XMonad.Hooks.SetWMName		-- setWMname
import	XMonad.Hooks.ManageHelpers	-- doCenterFloat, isFullscreen, doFullfloat
--import  XMonad.Hooks.Place		-- placeHook for automatic placement of floating windows


import	XMonad.Layout.Named		-- custom layout names
import	XMonad.Layout.NoBorders		-- smart borders on solo clients
import	XMonad.Layout.Circle		-- float windows circled
import	XMonad.Layout.Grid		-- grid layout
import	XMonad.Layout.ToggleLayouts	-- toggle between two layouts
import	XMonad.Layout.Mosaic		-- taller, wider, reset layout
import  XMonad.Layout.ResizableTile     -- shrink & expand workspaces
import  XMonad.Layout.IM		-- template layout for IM and gimp respectively
import  XMonad.Layout.PerWorkspace	-- individual workspace layouts
import  XMonad.Layout.Reflect		-- horizontal/vertical reflection of layouts ; 	gimp+im-layout; q-- import XMonad.Layout.MultiToggle
import	XMonad.Layout.SimpleFloat	-- SimpleFloat
import	XMonad.Layout.Spacing		-- enable spacing
import	XMonad.Layout.Gaps		-- configs for windows gaps

import	XMonad.Util.EZConfig		-- append key/mouse bindings
import	XMonad.Util.Run(spawnPipe)	-- spawnPipe, hPutStrLn		; q-- safespawn/unsafespawn

--import	Data.List			-- http://www.nepherte.be/clickable-workspaces-in-xmonad-with-dzen2/
import	Data.Monoid			-- myEventHook = mempty
import	System.IO			--
import  System.Exit                     -- exitWith


--------------------------------------------------------------------------------------------------------------------------------------
---	II  Main Functions

main	= do
		status	<- spawnPipe myDzenStatus				-- xmonad status on the left
		conky	<- spawnPipe myDzenMusic				-- music info in the middle
		conky	<- spawnPipe myDzenSystem				-- conky stats on the right
		pipe	<- spawnPipe "xmobar ~/.xmonad/xmobarrc"		-- xmobar for weather & date top right
		xmonad	$ withUrgencyHook NoUrgencyHook $ defaultConfig {
	  modMask	= myModMask
	, keys		= myKeys
	, terminal	= "terminal"						-- set xfce-terminal standard
	, borderWidth	= 1
	, normalBorderColor	= "#222222"
	, focusedBorderColor	= "#3399ff"
	, handleEventHook	= myEventHook					
	, workspaces	= myWorkspaces						-- => see III
	, layoutHook	= myLayoutHook						-- => see V
	, manageHook	= manageDocks	<+> myManageHook			-- => see IV
					<+> manageHook defaultConfig
	, logHook	= myLogHook status
	, startupHook	= setWMName "LG3D"					-- set WMName to LG3D for Java apps (lucidor, omegat)
	} 

myEventHook = mempty		 						-- fullScreenEventHook --> darcs only


--------------------------------------------------------------------------------------------------------------------------------------
---	III  Workspace Naming 

-- 10 workspaces from 1 to 0, standard: myWorkspaces = map show $ [1..9] ++ [0]

-- ?? http://haskell.org/haskellwiki/index.php?title=Xmonad/Config_archive/Nnoell's_xmonad.hs
-- ?? http://www.nepherte.be/clickable-workspaces-in-xmonad-with-dzen2/


myWorkspaces ::	[String]
myWorkspaces =	[ "^fn(" ++ wsFont ++ ")1"	-- system
		, "^fn(" ++ wsFont ++ ")2"	-- manage
		, "^fn(" ++ wsFont ++ ")3"	-- dic
		, "^fn(" ++ wsFont ++ ")4"	-- dtp
		, "^fn(" ++ wsFont ++ ")5"	-- graphics
		, "^fn(" ++ wsFont ++ ")6"	-- doc
		, "^fn(" ++ wsFont ++ ")7"	-- www
		, "^fn(" ++ wsFont ++ ")8"	-- com
		, "^fn(" ++ wsFont ++ ")9"	-- multimedia
		, "^fn(" ++ wsFont ++ ")0"	-- vm
		]

wsFont          = "OCR A-20"			-- special workspace font



--------------------------------------------------------------------------------------------------------------------------------------
---	IV  Window Management

myManageHook    :: ManageHook
myManageHook	= (composeAll . concat $
	[ [resource	=? r	--> doIgnore            | r	<- myIgnores	] -- stuff to ignore
										  -- * display stuff for    to ws
	, [className	=? c	--> doShift	(myWorkspaces !! 2)	| c	<- myMng	] -- 	managing files		2
	, [className	=? c	--> doShift	(myWorkspaces !! 3)	| c	<- myDic	] -- 	translation		3
	, [className	=? c	--> doShift	(myWorkspaces !! 4)	| c	<- myDtp	] --	text & word processing	4
	, [className	=? c	--> doShift	(myWorkspaces !! 5)	| c	<- myGfx	] --	graphics		5
	, [className    =? c	--> doShift     (myWorkspaces !! 6)     | c     <- myDoc	] --	viewing composed docs	6
	, [className    =? c	--> doShift     (myWorkspaces !! 7)     | c     <- myWww	] --	web browsing		7
	, [className	=? c	--> doShift	(myWorkspaces !! 8)	| c	<- myCom	] --	communication		8
	, [className    =? c	--> doShift     (myWorkspaces !! 9)     | c     <- myMm		] --	multimedia		9
	, [className    =? c	--> doShift     (myWorkspaces !! 0)     | c     <- myVm		] --	virtual machines	0
	, [className	=? c	--> doCenterFloat       | c	<- myFloatWCs	] -- window classes to float
	, [name		=? n	--> doCenterFloat       | n	<- myFloatWNs	] -- window names to float
	, [isFullscreen		--> myDoFullFloat				]
	]) 
	
	where
		role	= stringProperty "WM_WINDOW_ROLE"
		name	= stringProperty "WM_NAME"

-- r (resources) to ignore
		myIgnores = ["stalonetray","trayer"]

-- what to float
		myFloatWCs = ["bashrun","glxgears","feh"]
                myFloatWNs = ["Vlc","Smplayer","MPlayer","Xmessage","Downloads"]

-- c (classnames) to shift  (check with  xprop|grep WM_CLASS)
		myMng	= ["Thunar","thunar","filezilla","Filezilla"]
		myDic	= ["stardict","Stardict","sun-awt-X11-XFramePeer","org-omegat-Main","midori","Midori"]
		myGfx	= ["gimp","Gimp","ristretto","Ristretto","xsane","Xsane"]
		myDtp	= ["Winefish","winefish","VCLSalFrame","VCLSalFrame.DocumentWindow","libreoffice-startcenter","libreoffice-writer","libreoffice-calc","libreoffice-impress","libreoffice-draw"]
		myDoc	= ["acroread","evince","Evince","calibre","Calibre"]
		myWww	= ["Firefox","Uzbl","uzbl","Uzbl-core","uzbl-core"]
		myCom	= ["Pidgin","Buddy List"]
		myMm	= ["vlc","Vlc","dragon","Dragon","Mplayer","easytag","Easytag"]
		myVm	= ["VirtualBox","Qemu"]

-- a trick for fullscreen but still allow focusing of other WSs
myDoFullFloat	:: ManageHook
myDoFullFloat	= doF W.focusDown	<+> doFullFloat


--------------------------------------------------------------------------------------------------------------------------------------
--- 	V  Workspace Layout Configs

--- old version:
--myLayoutHook = avoidStruts $ toggleLayouts (noBorders Full)
--    (smartBorders (tiled ||| mosaic 2 [3,2] ||| Mirror tiled ||| layoutHints (tabbed shrinkText myTab)))
--    where
--        tiled   = layoutHints $ ResizableTall nmaster delta ratio []
--        nmaster = 1
--        delta   = 2/100
--        ratio   = 1/2

--- new version:
myLayoutHook    = id
	$ onWorkspace (myWorkspaces !! 5) gimpLayout
	$ mainLayouts

mainLayouts	= avoidStruts $ smartBorders 
		$ (Mirror tiled ||| tiled ||| Circle ||| Grid ||| mosaic 2 [3,2] ||| Full)
        where
                tiled           = ResizableTall nmaster delta ratio []
                nmaster         = 1    
                ratio           = 1/2  
                delta           = 3/100

gimpLayout	= avoidStruts 	$ withIM (0.11) (Role "gimp-toolbox")
		$ reflectHoriz	$ withIM (0.15) (Role "gimp-dock") Full


--------------------------------------------------------------------------------------------------------------------------------------
---	 VI  Statusbars

myLogHook h	= dynamicLogWithPP $ myDzenPP { ppOutput = hPutStrLn h }

myDzenStatus	= "dzen2 -w '1000' -ta 'l'" ++ myDzenStyle
myDzenStyle	= " -h '34' -fg '#3399ff' -bg '#222222' -fn 'UnDotum-14'"
myDzenMusic	= "conky -c ~/.xmonad/musicrc | dzen2 -x '1000' -y '16' -w '400' -ta 'l' -bg '#222222' -fn 'UnDotum-10' "
myDzenSystem	= "conky -c ~/.xmonad/systemrc | dzen2 -x '1400' -y '16' -w '350' -ta 'r' -bg '#222222' -fn 'UnDotum-10' "


myTitleFont	= "UnDotum-14"

myLayoutFgColor	= "#3399ff" --"#1994d1"
myLayoutBgColor	= "#222222" 


--------------------------------------------------------------------------------------------------------------------------------------
--- 
myDzenPP	= dzenPP
	{ ppCurrent	= dzenColor "#3399ff" "" . wrap "" ""
	, ppVisible	= dzenColor "#ffff00" "" . wrap "" ""
	, ppHidden	= dzenColor "#dddddd" "" . wrap "" "" 
--	, ppHiddenNoWindows = dzenColor "#777777" "" . wrap "" ""					-- don't show ws without clients
	, ppUrgent	= dzenColor "#ff0000" "" . wrap " " " "
	, ppSep		= ""
	, ppLayout	= dzenColor myLayoutFgColor myLayoutBgColor .
		(\x ->	case x of
                        "Mirror ResizableTall"  -> " ^i(/home/nexus/.icons/dzen/mtall.xbm) " ++ " "
			"ResizableTall"		-> " ^i(/home/nexus/.icons/dzen/tall.xbm) " ++ " "
			"Circle"		-> " ^i(/home/nexus/.icons/dzen/circle.xbm) " ++ " "
			"Grid"			-> " ^i(/home/nexus/.icons/dzen/grid.xbm) " ++ " "
                        "Mosaic"		-> " ^i(/home/nexus/.icons/dzen/mosaic.xbm) " ++ " "
			"Full"			-> " ^i(/home/nexus/.icons/dzen/full2.xbm) " ++ " "
			"gimpLayout"		-> " ^i(/home/nexus/.icons/dzen/gimp.xbm) " ++ " "
        	)
	, ppTitle	= \x -> "^fn(" ++ myTitleFont ++ ")" ++ "  " ++ shorten 90 x ++ "   "		-- \x -> "" to switch off title
	, ppOrder	= \(ws:l:t:_)		-> [l, ws, t]  
	}


--------------------------------------------------------------------------------------------------------------------------------------
---	VII  Key bindings


myModMask       = mod4Mask

myKeys	conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
	[
--- Xmonad exec
	  ((modMask			, xK_q)		, io (exitWith ExitSuccess)		) -- quit xmonad
	, ((modMask	.|. shiftMask	, xK_q)		, spawn "killall -9 xmobar conky dzen2; xmonad --recompile; xmonad --restart"	) -- rebuild & restart xmonad and safely close all bars
	, ((modMask			, xK_r)		, spawn "killall -9 xmobar conky dzen2; xmonad --restart"		) -- restart xmonad w/o rebuild
--	, ((modMask			, xK_r)		, spawn "killall -9 xmobar conky dzen2;" >> restart "xmonad" True	) -- restart xmonad w/o rebuild

--- System exec
	, ((modMask	.|. controlMask	, xK_Delete)	, spawn "sudo shutdown -r now"		) -- reboot
        , ((modMask	.|. controlMask	, xK_Insert)	, spawn "sudo shutdown -h now"		) -- poweroff

--- Applications
	, ((modMask			, xK_Return)	, spawn $ XMonad.terminal conf		) -- launch terminal
--        , ((modMask,    xK_##)				, spawn $ XMonad.terminal conf XXX	) -- launch scratchpad
	, ((modMask	.|. shiftMask	, xK_p)		, spawn "gmrun"				) -- app launcher 1 
	, ((modMask	.|. shiftMask	, xK_d)		, spawn "dmenu"				) -- app launcher 2
	, ((modMask	.|. shiftMask	, xK_t)		, spawn "thunar"			) -- filemanager
	, ((modMask	.|. shiftMask	, xK_x)		, spawn "xscreensaver-command --lock"	) -- lock screen
--	, ((modMask	.|. shiftMask	, xK_s)		, spawn "terminal -e zsh -c 'screen -dRR -S $HOSTNAME'" ) -- launch screen session
--	, ((modMask	.|. shiftMask	, xK_n)		, spawn "wicd-client -n"		) -- network manager
	, ((modMask	.|. shiftMask	, xK_f)		, spawn "firefox"			) -- browser 1
--	, ((modMask	.|. shiftMask	, xK_m)		, spawn "midori"			) -- browser 2
	, ((modMask	.|. shiftMask	, xK_u)		, spawn "terminal -e zsh -c 'ncmpcpp'"	) -- launch termianl w/ ncmpcpp

--- Windows actions
	, ((modMask			, xK_c)		, kill					) -- close current window
-- ??	, ((modMask			, xK_n)		, refresh				) -- correctly resize viewed windows
        , ((modMask                     , xK_Tab)       , cycleRecentWindows [xK_Alt_L] xK_Tab xK_Tab   ) -- classic alt-tab behaviour
	, ((modMask			, xK_j)		, windows W.focusDown			) -- focus next window    
	, ((modMask			, xK_Tab)	, windows W.focusDown			) --		" 
	, ((mod1Mask			, xK_Tab)	, windows W.focusDown			) --		" 
	, ((modMask			, xK_k)		, windows W.focusUp			) -- focus previous window
	, ((modMask	.|. shiftMask	, xK_Tab)	, windows W.focusUp			) --		"
	, ((mod1Mask	.|. shiftMask	, xK_Tab)	, windows W.focusUp			) --		"
	, ((modMask			, xK_m)		, windows W.focusMaster			) -- focus master window
	, ((modMask	.|. shiftMask	, xK_j)		, windows W.swapDown			) -- swap focus with next window
	, ((modMask	.|. shiftMask	, xK_k)		, windows W.swapUp			) -- swap focus with previous window
	, ((modMask	.|. shiftMask	, xK_m)		, windows W.swapMaster			) -- swap focus with master window
	, ((modMask			, xK_h)		, sendMessage Shrink			) -- shrink/expand master area
	, ((modMask			, xK_l)		, sendMessage Expand			) -- 		"
	, ((modMask	.|. shiftMask	, xK_h)		, sendMessage MirrorShrink              ) --		"
	, ((modMask	.|. shiftMask	, xK_l)		, sendMessage MirrorExpand		) --		"
	, ((modMask			, xK_comma)	, sendMessage (IncMasterN 1)		) -- increase windows no./master area
	, ((modMask			, xK_period)	, sendMessage (IncMasterN (-1))		) -- decrease windows no./master area
	, ((modMask			, xK_a)		, sendMessage Taller			) -- toggle mosaic view
	, ((modMask			, xK_z)		, sendMessage Wider			) --		"
	, ((modMask	.|. controlMask	, xK_n)		, sendMessage Reset			) --		"
	, ((modMask			, xK_f)		, sendMessage (Toggle "Full")		) -- toggle fullscreen
	, ((modMask			, xK_s)		, withFocused $ windows . W.sink	) -- toggle back to tiling
	--, ((modMask   .|. shiftMask   , xK_s)		, sendMessage Arrange			)

--- Layout actions
	, ((modMask			, xK_space)	, sendMessage NextLayout		) -- rotate layouts
--	, ((modMask	.|. shiftMask	, xK_n)		, setLayout $ XMonad.layoutHook conf	) -- reset layout of current workspace

--- Workspace actions
	, ((modMask			, xK_b)		, sendMessage ToggleStruts		) -- toggle status bar gap
	, ((modMask			, xK_Right)	, nextWS				) -- go to next ws
	, ((modMask			, xK_Left)	, prevWS				) -- go to previous ws
	, ((modMask	.|. shiftMask	, xK_Right)	, shiftToNext				) -- move client next ws
	, ((modMask	.|. shiftMask	, xK_Left)	, shiftToPrev				) --	  "	previous ws
	, ((modMask	.|. controlMask	, xK_Right)	, shiftTo Next EmptyWS			) --	  "	next empty ws
	, ((modMask	.|. controlMask	, xK_Left)	, shiftTo Prev EmptyWS			) --	  "	previous empty ws
	]
	++
	[ ((m		.|. modMask, k)	, windows $ f i)					  -- go to n-th workspace ...
	| (i, k)	<- zip (XMonad.workspaces conf) ([xK_1 .. xK_9] ++ [xK_0])		  -- ... including "0" for tenth
	, (f, m)	<- [(W.greedyView, 0), (W.shift, shiftMask)]				  -- view new ws or shift client to ws
	]
	++
	[ ((m		.|. modMask, key), screenWorkspace sc >>= flip whenJust (windows . f))
	| (key, sc)	<- zip [xK_w, xK_e, xK_r] [0..]
	, (f, m)	<- [(W.view, 0), (W.shift, shiftMask)]
	]

--------------------------- 
-- --> http://haskell.org/haskellwiki/Xmonad/Config_archive/Brent_Yorgey's_darcs_xmonad.hs
-- scratchpads =
--  [ NS "term" "urxvt-custom -title term" (title =? "term") mySPFloat
--  , NS "ghci" "urxvt-custom -e ghci" (title =? "ghci") mySPFloat
--  , NS "sync" "urxvt-custom -e sy" (title =? "sy") mySPFloat
--  , NS "top"  "urxvt-custom -e htop" (title =? "htop") mySPFloat
--  ]   --- ...
--

--------------------------------------------------------------------------------------------------------------------------------------
---	VIII  Mouse Bindings

myMouseBindings	(XConfig {XMonad.modMask = modMask}) = M.fromList $
	[ ((controlMask	, button1)	, (\w 	-> focus w 	>> mouseMoveWindow w)		) -- left click: float (and move) window
	, ((controlMask	, button2)	, (\w 	-> focus w 	>> kill)			) -- right click: kill focused window
	, ((controlMask	, button3)	, (\w 	-> focus w 	>> mouseResizeWindow w)		) -- middle click: float (and resize) window
	]											  -- no actions for buttons 4 and 5 (scrolling) yet

Though the workspace-, manageHook-, and layoutHook-sections look similar to nnoell's configs, I just can't get it to work. tongue
Even mine seems to be simpler than his, as it hasn't got any clickability. -- The main difference between
nnoell's

myWorkspaces = ...
	," ^i(/home/nnoell/.icons/subtlexbm/terminal.xbm) term "
	...

and mine

myWorkspaces :: [String]
myWorkspaces =  [ "^fn(" ++ wsFont ++ ")1"
	...

IMO is, that my workspace names is a combination of three strings, and his is just one.

Despite this, our other ws namings in

myManageHook = ...
	, [className    =? c     --> doShift (myWorkspaces !! 1)
   ...

and

myLayoutHook = ...
	$ onWorkspace (myWorkspaces !! 3) gimpLayouts
	...

look much the same.
   
Seems not to be too difficult then -- however I couldn't get the stuff to work the way I want. tongue

Any ideas welcome.


NB: The mentioned ocra-font is kind of dummy here. Though the original one works for my ws names, I'll reveal the secret about it when everything works fine and provide a pkgbuild. wink


Edit://  Well that's kinda funny: I just recognised, apps do shift, but up to workspace n+1, say the next right one...

Last edited by nexus7 (2011-10-27 23:29:08)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#2 2011-10-28 11:41:37

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

News in short:

As doShift-apps appear on workspace n+1, so does gimp, say "6" instead of "5".
But when especially gimp is invoked from eg ws "2" workspace "6" gets activated, but gimp stops starting until going directly to "6".
On "6" the PP still shows "2".
When gimp finished starting, the layout is "Morror tiled" (which is the first of mainLayouts) and will stuck.
gimp covers other windows, like a terminal with htop.
While cycling through windows on "6", the underlying terminal shows up and seems to stay on top.
When continue cycling only the three gimp's window frames appear (highlighted), while the windows' contents may appear or may not.
Further, going to other workspaces from there, the ws are again indicated properly.
Going back (from any ws) to ws "6" with gimp in it, the former ws remains indicated.
However, even when "6" is empty, it's possible to go there, also the former ws is indicated, and the layout is "mirror tiled" and can't be changed.
--> So, there is probably no problem with gimp itself, but the gimpLayout.

myLayoutHook    = id
	$ onWorkspace (myWorkspaces !! 5) gimpLayout
	$ mainLayouts
	...
gimpLayout	= avoidStruts 	$ withIM (0.11) (Role "gimp-toolbox")
		$ reflectHoriz	$ withIM (0.15) (Role "gimp-dock") Full

Or are the config sections maybe in wrong order?


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#3 2011-10-29 01:35:51

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

Some more news:

OK, I already suspected something stupid with that n+1-shifting thingy: I mixed up my ws naming "1" to "(1)0" with xmonad's internal counting from 0 to 9. After correcting this, apps shift to their right workspace.

Meanwhile an XP, a scratchpad, and GridSelect are also implemented, cool stuff! smile

And then I thought about that ws font trouble isn't really one, as I could create a seperate workspace bar. In this case dzen could simply pipe numbers through my ws font, so no hassle about cruel strings in myWorkspaces anymore. Maybe I leave this for now, and put up with "xmonadPrompt myXPConfig" looking ugly, because of the same naming strings appearing there. -- On the other side my screen's top would be cluttered with even more bars. Well, let's see.

So what is really making me sick is that layout problem. gimp still appears mirror tiled on top (of ws "5" now), covering other clients which are able to rotate through all "mainLayout"s (ppLayout changing accordingly).
Edit:// Ah yes forget to mention, if this helps: ppLayout again does not show ws "5" directly, just the last visited one.
-- Now I'm tryíng to follow nnoell's difficile config which includes also tabbing layout. But I really haven't got that "Minimize"-stuff in ppLayout yet; could somebody using this provide a screenshot, please?

And I am also not sure if I fully understand the concept of myLayout: if there is a definition "gimpLayout" defined for ws "5", do other clients on the same ws still become "mainLayout"ed? And, how would this be visible in ppLayout -- will gimp's windows be indicated as "gimpLayout" (including it's subset of other layouts), while the other focused clients on the same ws remain "mainLayout", or will all clients on that ws appear as "gimpLayout"? Sort of confusing ... hope, somebody can help. smile

Last edited by nexus7 (2011-10-29 02:21:34)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#4 2011-10-29 10:31:55

nnoell
Member
From: Spain
Registered: 2010-08-21
Posts: 99

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

Well, this may sound strange but I tried your setup and works just perfect (xmonad-darcs). ¿Are you using xmonad-darcs from AUR or xmonad 0.9 from community?
If you are using darcs, try to define myLayoutHook as mine, with gimpLayout inside where:

-- Layout hook
myLayoutHook = id
        ...
        $ onWorkspace (myWorkspaces !! 3) gimpLayouts
	$ allLayouts
	where
		allLayouts  = myTile ||| myObig ||| myMirr ||| myMosA ||| myTabM
		gimpLayouts = myGimp
		--Layouts
		myTile = named "T"  (smartBorders (ResizableTall 1 0.03 0.5 []))
		myMirr = named "MT" (smartBorders (Mirror myTile))
		myMosA = named "M"  (smartBorders (MosaicAlt M.empty))
		myObig = named "O"  (smartBorders (OneBig 0.75 0.65))
		myTabM = named "TM" (smartBorders (mastered 0.01 0.4 $ (tabbed shrinkText myTabTheme)))
		myGimp = named "G"  (withIM (0.15) (Role "gimp-toolbox") $ reflectHoriz $ withIM (0.20) (Role "gimp-dock") (myMosA))
nexus7 wrote:

And I am also not sure if I fully understand the concept of myLayout: if there is a definition "gimpLayout" defined for ws "5", do other clients on the same ws still become "mainLayout"ed? And, how would this be visible in ppLayout -- will gimp's windows be indicated as "gimpLayout" (including it's subset of other layouts), while the other focused clients on the same ws remain "mainLayout", or will all clients on that ws appear as "gimpLayout"? Sort of confusing ... hope, somebody can help.

No, they don't. gimpLayout should works like another layout, if you open a non-gimp-client, it should become gimpLayouted.

Edit: typo.

Last edited by nnoell (2011-10-29 11:32:02)

Offline

#5 2011-10-29 12:14:10

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

Hi nnoell. smile

Just woke up, thinking: if gimp stays on top -- it maybe just floats? And indeed it does, floating mirror tiled. Pressing "mod4-s" on all gimp clients sinks them all down into gimpLayout, but fullscreen, covering the bars. There's no effect on ppLayout however (still mirror tiled), as I can see when dragging gimp away; but "5" is also showing up.


nnoell wrote:

Well, this may sound strange but I tried your setup and works just perfect (xmonad-darcs). ¿Are you using xmonad-darcs from AUR or xmonad 0.9 from community?

...ugh?! Erm, glad you asked! big_smile
It's community's. -- Though it is mentioned in here, I didn't consider this, because I thought, gimped layouts aren't special features of darcs and are found more or less the same in plenty vanilla configs.


nnoell wrote:
nexus7 wrote:

And I am also not sure if I fully understand the concept of myLayout: if there is a definition "gimpLayout" defined for ws "5", do other clients on the same ws still become "mainLayout"ed? And, how would this be visible in ppLayout -- will gimp's windows be indicated as "gimpLayout" (including it's subset of other layouts), while the other focused clients on the same ws remain "mainLayout", or will all clients on that ws appear as "gimpLayout"? Sort of confusing ... hope, somebody can help.

No, they don't. gimpLayout should works like another layout, if you open a non-gimp-client, it should become gimpLauouted.

Ah, unterstanding a bit better now. -- But, for this "Role gimp-xxx", gimpLayout is intended to work for gimp clients, isn't it? I mean, doesn't it 'detect' gimp clients only?


Well, the necessity of darcs puts all into a new light. Originally I avoided it for keeping packages up to date more easily (also why should I even use darcs without almost any further xmonad skills?), but I'm gonna use it now. And who knows, maybe it will be the solution for other problems, like some still not working mykey's and the yet not floating scratchpad. tongue
In this case I could also see what's about darcs' verison of "fullScreenEventHook", and hopefully I'd be able to arrange gimpLayout easier inside of a tab(bed layout). I'll probably need to open a new thread then. wink

For now I will soon be off for the next hours and don't know how long switching to darcs lasts. But I'll stay online for another ~30 minutes.

Last edited by nexus7 (2011-10-29 13:05:45)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#6 2011-10-29 15:02:25

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

Be careful switching back and forth between darcs and community with Haskell stuff like xmonad. You can get stuff messed up with ghc not properly registering or unregistering packages. For me, I don't have an xmonad man page using the darcs version for some reason; not sure if it's related to the switching versions or not.

Offline

#7 2011-10-29 17:02:34

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

hellomynameisphil wrote:

Be careful switching back and forth between darcs and community with Haskell stuff like xmonad. You can get stuff messed up with ghc not properly registering or unregistering packages. For me, I don't have an xmonad man page using the darcs version for some reason; not sure if it's related to the switching versions or not.

Hi,
what do you mean exactly with "switching back and forth between darcs and community"? Once I use the darcs' version, I won't go back to community's anyway. One can't even build darcs' packages, since they conflict with standard xmonad's, so they better must be uninstalled before (I don't know, if there is some kind of "force" option, but wouldn't use it either). -- The only thing I worry about a bit is getting troubled when the next xmonad darcs updates are out some day; would be nice having a manual at hand then.

Not having switched to xmonad-darcs yet, I'll do this later after being back home.


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#8 2011-10-31 00:57:41

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

Back from the crypt -- and now tuned to xmonad-/xmonad-contrib-darcs. smile
Got rid of community's stuff first, then all installed fine finally by manually makepkg'ing them, though there were warnings about crc sums and missing "link destinations".


Something got changed when it comes to layouts, as gimp is somehow re-arranged, but obviously not as expected:
tYjF1ZQ
Here gimp is fullscreen, covering the top bar, but with a gap on the left side, where you can see part of ppLayout in the upper left corner. ((edited:)) Both gimp-toolbox and gimp-dock (partially) cover gimp's main window (the left one usually gets focus if I wouldn't move the cursor to the main window as shown). ppLayout still shows "mirror tiled".

When going to "5" (remember: "5" as "workspace !! 4" where graphic apps like gimp are shifted to), the last visited ws number is still displayed as actual ws, though "5" is activated; in other words: ws "5" displays as occupied ws, but never as the actual one.
gimp itself only continues loading when going to "5" (is this normal, instead of finish loading in the background?).

Hm, ideas?


Just a guess: I remember some earlier installs of haskell-packages from the aur. I personally don't think so, but do maybe they or some of them cause trouble because of darcs? That's the list:

$ pacman -Qqs haskell
ghc
haskell-ansi-terminal
haskell-ansi-wl-pprint
haskell-base64-bytestring
haskell-binary
haskell-citeproc-hs
haskell-colorize-haskell
haskell-colour
haskell-deepseq
haskell-digest
haskell-dlist
haskell-haskell-lexer
haskell-hs-bibutils
haskell-http
haskell-json
haskell-mtl
haskell-network
haskell-pandoc
haskell-pandoc-types
haskell-parsec
haskell-split
haskell-syb
haskell-tagsoup
haskell-texmath
haskell-text
haskell-transformers
haskell-utf8-string
haskell-x11
haskell-x11-xft
haskell-xhtml
haskell-xml
haskell-zip-archive
haskell-zlib

Last edited by nexus7 (2011-10-31 01:14:08)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#9 2011-10-31 03:55:36

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nexus7 wrote:

Hi, what do you mean exactly with "switching back and forth between darcs and community"? Once I use the darcs' version, I won't go back to community's anyway. One can't even build darcs' packages, since they conflict with standard xmonad's, so they better must be uninstalled before...

Sorry, I also meant switching to darcs from community. I switched recently and had some trouble with package registration, as I mentioned. Hope you dodged that bullet.

Offline

#10 2011-11-01 16:23:50

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

It is somewhat disgusting. Tried other layout combinations, without any progress! tongue
gimp seems totally ignoring everything... it still covers the top bars (though I did not define any full floating stuff), and the side docks partially it's main window.


Well, when commenting out (workspace !! 4)

myLayoutHook    =  id
--      $ onWorkspace (myWorkspaces !! 4) gimpLayout
        $ mainLayouts
        where
        ...

workspace '"5" gets indicated "focused" as it should (otherwise the former visited ws does, as said before).


However doing s.th. like

myLayoutHook    =  id
--      $ onWorkspace (myWorkspaces !! 4) gimpLayout
        $ mainLayouts
        where
                mainLayouts     = avoidStruts 
                                $ smartBorders
--                              $ Mirror tiled ||| tiled ||| Circle ||| Grid ||| Mosaic 2 [3,2] ||| Full
                                $ Mirror tiled ||| tiled ||| Circle ||| Grid ||| Full ||| gimpLayout
                tiled           = ResizableTall nmaster delta ratio []
                nmaster         = 1    
                ratio           = 1/2  
                delta           = 3/100

        gimpLayout      = withIM (0.11) (Role "gimp-toolbox") $ reflectHoriz $ withIM (0.15) (Role "gimp-dock") Full

makes no changes. gimpLayout still has been ignored and has never been indicated yet (tested with different icons, like):

myDzenPP        = dzenPP
        { ...
        , ppLayout      = dzenColor myLayoutFgColor myLayoutBgColor .
                (\x ->  case x of
                        "Mirror ResizableTall"  -> " ^i(/home/nexus/.icons/xdzen/mtall.xbm) " ++ " "
                        "ResizableTall"         -> " ^i(/home/nexus/.icons/xdzen/tall.xbm) " ++ " "
                        "Circle"                -> " ^i(/home/nexus/.icons/xdzen/circle.xbm) " ++ " "
                        "Grid"                  -> " ^i(/home/nexus/.icons/xdzen/grid.xbm) " ++ " "
--                        "Mosaic"              -> " ^i(/home/nexus/.icons/xdzen/mosaic.xbm) " ++ " "
                        "Full"                  -> " ^i(/home/nexus/.icons/xdzen/full2.xbm) " ++ " "
                        "gimpLayout"            -> " ^i(/home/nexus/.icons/xdzen/arch1.xbm) " ++ " "
                )
                ...
        }

I'd really appreciate if somebody comes up with an idea!


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#11 2011-11-02 11:17:14

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nnoell wrote:

Well, this may sound strange but I tried your setup and works just perfect (xmonad-darcs).

nnoell: could you then please paste your copy of my code exactly as you've been using it? This sounds foolish, but there are maybe differences to my version (whitespace, indents, tabbing) what's causing the trouble. Or there are different imports or changes in the order of code sections, who knows...

Related to gimp, I'll reinstall it later incl. deleting it's configs. Also maybe manipulating it's sessionrc could help. But if so, this would have nothing to do with xmonad, of course. The questions remain, why ppLayout isn't able to display the selected icon for gimpLayout yet, as well as the focused workspace for gimpLayout -- literally "5" aka (workspace !! 4) -- is not shown, but the last visited one.

Last edited by nexus7 (2011-11-02 11:18:35)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#12 2011-11-02 12:22:05

nnoell
Member
From: Spain
Registered: 2010-08-21
Posts: 99

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nexus7 wrote:
nnoell wrote:

Well, this may sound strange but I tried your setup and works just perfect (xmonad-darcs).

nnoell: could you then please paste your copy of my code exactly as you've been using it? This sounds foolish, but there are maybe differences to my version (whitespace, indents, tabbing) what's causing the trouble. Or there are different imports or changes in the order of code sections, who knows...

Related to gimp, I'll reinstall it later incl. deleting it's configs. Also maybe manipulating it's sessionrc could help. But if so, this would have nothing to do with xmonad, of course. The questions remain, why ppLayout isn't able to display the selected icon for gimpLayout yet, as well as the focused workspace for gimpLayout -- literally "5" aka (workspace !! 4) -- is not shown, but the last visited one.

Sure, here it is: xmonad.hs.

I also take two screenshots: one with gimp running and another with gimp and urxvt running.

BTW, I forgot to mention that I had to restart X the first time so that gimpLayout works. Hope this helps.

Offline

#13 2011-11-02 12:53:01

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nnoell wrote:

Sure, here it is: xmonad.hs.

I also take two screenshots: one with gimp running and another with gimp and urxvt running.

Thanks. smile
Well, the second screenie looks interesting; so, urxvt just replaces gimp's main window...

nnoell wrote:

BTW, I forgot to mention that I had to restart X the first time so that gimpLayout works. Hope this helps.

Yeah, meanwhile I even (re)booted several times, of course...

OK, unfortunately I have to leave now. CU again in a couple of hours.


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#14 2011-11-03 19:49:02

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nnoell (or others):
playing with your code now (well, originally I thought you were testing mine pasted here, and this would work; it rather seems to be meant your gimpLayout-stuff only). Most of the time it works fine (actually with workspacebar only and own fonts), like gimpLayout.

But sometimes it doesn't. So, I can't put anything into tabbing layout -- though I changed the keys, now

        , ((mod1Mask, xK_F12), sendMessage $ XMonad.Layout.MultiToggle.Toggle TABBED)                 --Push layout into tabbed

These

        , ((modMask .|. shiftMask, xK_z), sendMessage $ Toggle MIRROR)                             --Push layout into mirror
        , ((modMask .|. shiftMask, xK_x), sendMessage $ XMonad.Layout.MultiToggle.Toggle REFLECTX) --Reflect layout by X
        , ((modMask .|. shiftMask, xK_y), sendMessage $ XMonad.Layout.MultiToggle.Toggle REFLECTY) --Reflect layout by Y

and some others also don't work.


Then there are those "{- ... -}", that I don't understand. Your code is making use of them in some kind of preamble:

-- Misc
{-# LANGUAGE DeriveDataTypeable, NoMonomorphismRestriction, TypeSynonymInstances, MultiParamTypeClasses #-}

Here this can't be some kind of comment, since this line is needed for lines 157ff:

-- Transformers (Ctrl+f)
data TABBED = TABBED deriving (Read, Show, Eq, Typeable)
instance Transformer TABBED Window where
        transform TABBED x k = k (named "TS" (smartBorders (tabbedAlways shrinkText myTabTheme))) (\_ -> x)

On the other hand, they look like a multi-line comment in lines 195--224, as there are two instances of "myLayoutHook":

 -- Layout hook
{-
myLayoutHook = id
        $ gaps [(U,16), (D,16), (L,0), (R,0)]
        $ avoidStruts
        $ minimize   
        $ mkToggle (single TABBED)
        $ mkToggle (single MIRROR)
        $ mkToggle (single REFLECTX)
        $ mkToggle (single REFLECTY)
        $ onWorkspace (myWorkspaces !! 1) webLayouts  --Workspace 1 layouts
        $ onWorkspace (myWorkspaces !! 2) codeLayouts --Workspace 2 layouts
        $ onWorkspace (myWorkspaces !! 3) gimpLayouts --Workspace 3 layouts
        $ onWorkspace (myWorkspaces !! 4) chatLayouts --Workspace 4 layouts
        $ allLayouts
        where
                allLayouts  = myTile ||| myObig ||| myMirr ||| myMosA ||| myTabM
                webLayouts  = myTabs ||| myTabM
                codeLayouts = myTabM ||| myTile
                gimpLayouts = myGimp
                chatLayouts = myChat
                --Layouts
                myTile = named "T"  (smartBorders (ResizableTall 1 0.03 0.5 []))
                myMirr = named "MT" (smartBorders (Mirror myTile))
                myMosA = named "M"  (smartBorders (MosaicAlt M.empty))
                myObig = named "O"  (smartBorders (OneBig 0.75 0.65)) 
                myTabs = named "TS" (smartBorders (tabbed shrinkText myTabTheme))
                myTabM = named "TM" (smartBorders (mastered 0.01 0.4 $ (tabbed shrinkText myTabTheme)))
                myGimp = named "G"  (withIM (0.15) (Role "gimp-toolbox") $ reflectHoriz $ withIM (0.15) (Role "gimp-dock") (myMosA))
                myChat = named "C"  (withIM (0.20) (Title "Buddy List") $ Mirror myTile)
-}
myLayoutHook    = id
        $ onWorkspace (myWorkspaces !! 3) gimpLayout
        $ mainLayouts

mainLayouts     = avoidStruts $ smartBorders
                $ (Mirror tiled ||| tiled ||| Circle ||| Grid ||| mosaic 2 [3,2] ||| Full)
        where
                tiled           = ResizableTall nmaster delta ratio []
                nmaster         = 1
                ratio           = 1/2
                delta           = 3/100

gimpLayout      = avoidStruts   $ withIM (0.11) (Role "gimp-toolbox")
                $ reflectHoriz  $ withIM (0.15) (Role "gimp-dock") Full

Or is it some darcs stuff, maybe? Confusing...

Well, before I don't know a bit more, I'm scared about editing your code too much.


NB, wth is the "xK_masculine"-key; as I don't have an English or Spanish keyboard, how does it look like? Is there also a "female" one?


Edit:// Again: Yes, I do use xmonad-darcs, and to be 1000% save, I quit X before rebuilding xmonad, and restart it after rebuilding xmonad only.

Last edited by nexus7 (2011-11-03 20:02:57)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#15 2011-11-03 23:04:46

nnoell
Member
From: Spain
Registered: 2010-08-21
Posts: 99

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nexus7 wrote:

nnoell (or others):
playing with your code now (well, originally I thought you were testing mine pasted here, and this would work; it rather seems to be meant your gimpLayout-stuff only). Most of the time it works fine (actually with workspacebar only and own fonts), like gimpLayout.

Well, I actually didn't test all your xmonad.hs, I only tested your layoutHook because the rest of the code is irrelevant, so, I commented all my layoutHook with "{- ... -}" and pasted yours to test it.

nexus7 wrote:

Then there are those "{- ... -}", that I don't understand. Your code is making use of them in some kind of preamble:

-- Misc
{-# LANGUAGE DeriveDataTypeable, NoMonomorphismRestriction, TypeSynonymInstances, MultiParamTypeClasses #-}

Here this can't be some kind of comment, since this line is needed for lines 157ff:

-- Transformers (Ctrl+f)
data TABBED = TABBED deriving (Read, Show, Eq, Typeable)
instance Transformer TABBED Window where
        transform TABBED x k = k (named "TS" (smartBorders (tabbedAlways shrinkText myTabTheme))) (\_ -> x)

This "preamble" is needed in order to get a custom gridSelect theme and a custom transformer (TABBED in my case). More info here and here.

nexus7 wrote:

On the other hand, they look like a multi-line comment in lines 195--224, as there are two instances of "myLayoutHook"

In haskell, like all programming languages, it is possible to comment various lines with "{-" and "-}". It isn't a dacrs stuff, I just commented all myLayoutHook because I wanted to test yours.

Edit: typo.

Last edited by nnoell (2011-11-03 23:06:11)

Offline

#16 2011-11-03 23:48:19

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

I see, saves typing. smile

Yay, this tabbing-toggle-stuff is pretty cool! cool

Would you mind posting some info links about "minimizing" as well? I saw this in some configs, but haven't figured out yet what it is actually good for.
Edit: Wait, got something here. Hm, there seems to be no indicator for minimized windows, so they might be forgotten... Well, let's see, if I can make use of it.

And please tell me about this mystical "(xK_)masculine" key, too... What's its symbol, I can't find it! tongue

Last edited by nexus7 (2011-11-04 00:02:29)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#17 2011-11-04 00:36:59

nnoell
Member
From: Spain
Registered: 2010-08-21
Posts: 99

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

Masculine key is on the left side of "1" key. it is represented as "º". There is also a feminine key represented as "ª", you can check the layout here. I used to bind yakuake with <Mod><masculine> when I ran KDE3 a long time ago but now it launches scrachpad.

Offline

#18 2011-11-04 01:05:12

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

oh, I just misread "º" in your file as the accent "°". So cheers, now I'm gonna sleep in peace! wink


So, as your xmonad.hs works fine and I still really don't have a clue what's wrong with mine e.g. regarding gimpLayout, tomorrow I'll try to implement my configs (bars, wsFont, layout icons etc.) there then.  :knocks on wood:


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#19 2011-11-04 13:55:38

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

...comparing the layouts of both files, my code lines have no errors or differences, but they seem to miss something, whatever this may be.


I'm now in the middle of tweaking your new config anyway, and until now xmonad is still working fine. But yet there are two visible gaps:

* at the bottom with a height of 16(?)px, as I have no bottom bar.
* I use stalonetray in the upper right corner, but it appears on the first workspace only.

How to fix this?

Last edited by nexus7 (2011-11-04 13:56:02)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#20 2011-11-04 15:35:34

nnoell
Member
From: Spain
Registered: 2010-08-21
Posts: 99

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

You should try to google before asking, there is a lot of stuff on the net about how to configure xmonad.

nexus7 wrote:

* at the bottom with a height of 16(?)px, as I have no bottom bar.

From xmonad.org:

        ...
myLayoutHook = id
	$ gaps [(U,16), (D,0), (L,0), (R,0)]
	...
nexus7 wrote:

* I use stalonetray in the upper right corner, but it appears on the first workspace only.

wiki, forum1, forum2...

Offline

#21 2011-11-05 01:41:02

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: xmonad layout & doShift prob when displaying ws names w/ indiv. font

nnoell wrote:

You should try to google before asking, there is a lot of stuff on the net about how to configure xmonad.

Believe me, I've been googlin' tons of xmonad configs -- it's merely a question of not overlooking the obvious! wink


nnoell wrote:
nexus7 wrote:

* at the bottom with a height of 16(?)px, as I have no bottom bar.

From xmonad.org:

        ...
myLayoutHook = id
	$ gaps [(U,16), (D,0), (L,0), (R,0)]
	...

Yes and no; first I had misunderstood this as gaps between clients. And finally as I don't need gaps at all, I deleted that gaps line as well as import XMonad.Layout.Gaps.


nnoell wrote:
nexus7 wrote:

* I use stalonetray in the upper right corner, but it appears on the first workspace only.

wiki, forum1, forum2...

I knew those already. But it's even more simple again: I only forgot to put stalonetray into myIgnores.


The code you pasted lately is terrific! smile
It's quite more complex and way more functional than mine of course, but the more often I read it, the better I understand and like it. Now, the main transfer of my configs into this one is complete, finally nothing too fancy. However lots of details are left, such as adjusting colors and keys to my liking. -- This thread will soon get marked as solved. smile


we are Arch.
you will be assimilated!
resistance is futile!

Offline

Board footer

Powered by FluxBB