You are not logged in.
[OOT Xmonad]
In relation to scientific papers that I will make, I would like to do a survey about the xmonad window manager interface. Perhaps the Archlinux users here who use Xmonad window manager can help give an opinion about the xmonad in the following form: http://pendek.in/qap1
Thank you in advance, if it is deemed irrelevant to post it in here, admin can remove it if necessary. ![]()
Keep It Simple Stupid!
Offline
Done.
You may consider rephrasing the following question "How high levels of productivity changes do you feel? Mention the reason!" which, despite being the translation given by Google, makes no sense.
Cedric Girard
Offline
Done.
You may consider rephrasing the following question "How high levels of productivity changes do you feel? Mention the reason!" which, despite being the translation given by Google, makes no sense.
Ah okay, thanks for telling me. ![]()
Keep It Simple Stupid!
Offline
Just coming back to xmonad after a long spell using awesomeWM. After updating xmonad to the latest darcs version it seems a couple of things have been added. Can anyone tell me what to set for "rootMask" and "clientMask" in my XConfig?
xmonad.hs:330:95:
Constructor `XConfig' does not have the required strict field(s): clientMask,
rootMask
In the second argument of `($)', namely
`XConfig
{terminal = myTerminal, workspaces = withScreens 2 myWorkspaces,
modMask = myModMask, borderWidth = myBorderWidth,
normalBorderColor = myNormalBorderColor,
focusedBorderColor = myFocusedBorderColor,
focusFollowsMouse = True, clickJustFocuses = True, keys = myKeys,
mouseBindings = myMouseBindings, logHook = myLogHook top,
layoutHook = myLayoutHook, manageHook = myManageHook,
handleEventHook = myEventHook, startupHook = myStartupHook}'
In a stmt of a 'do' block:
xmonad
. withUrgencyHookC
NoUrgencyHook (urgencyConfig {suppressWhen = Focused})
. ewmh
$ XConfig
{terminal = myTerminal, workspaces = withScreens 2 myWorkspaces,
modMask = myModMask, borderWidth = myBorderWidth,
normalBorderColor = myNormalBorderColor,
focusedBorderColor = myFocusedBorderColor,
focusFollowsMouse = True, clickJustFocuses = True, keys = myKeys,
mouseBindings = myMouseBindings, logHook = myLogHook top,
layoutHook = myLayoutHook, manageHook = myManageHook,
handleEventHook = myEventHook, startupHook = myStartupHook}
In the expression:
do { bottom <- spawnPipe "xmobar";
top <- spawnPipe topbarCmd;
xmonad
. withUrgencyHookC
NoUrgencyHook (urgencyConfig {suppressWhen = Focused})
. ewmh
$ XConfig
{terminal = myTerminal, workspaces = withScreens 2 myWorkspaces,
modMask = myModMask, borderWidth = myBorderWidth,
normalBorderColor = myNormalBorderColor,
focusedBorderColor = myFocusedBorderColor,
focusFollowsMouse = True, clickJustFocuses = True, keys = myKeys,
mouseBindings = myMouseBindings, logHook = myLogHook top,
layoutHook = myLayoutHook, manageHook = myManageHook,
handleEventHook = myEventHook, startupHook = myStartupHook} }Here's the full xmonad.hs: http://preview.tinyurl.com/kgdq7hh
Offline
Hi everyone,
I've written two posts on how to build a vim-like xmonad environment. Features include
- 3-dimensional workspace
- window sorting
- shelving
- two-way window history step through
- task group
- advanced prompt
- topical workspace
- float styles
- per-workspace scratchpad
- wallpaper gallery mode
You can find the posts here
1. http://lynnard.tk/blog/2013/11/05/build … -and-more/
2. http://lynnard.tk/blog/2013/12/30/more-xmonad-goodies/
Happy new year and happy hacking!
Offline
What would be immensely cool is if it were possible to switch workspaces by wheeling right and left on xmobar. Would anyone here know if that was possible, and where to begin?
Offline
It should be doable.
You just need to find what are the button numbers of your horizontal scrollwheel. Then map buttonX and buttonY to nextWS and prevWS.
Last edited by X-dark (2014-01-31 12:45:10)
Cedric Girard
Offline
I want to use gridselectWindow, I am using it like
...
, ((mod4Maks, xK_h), gridselectWindow defaultGSConfig)
...I am using bringSelected and spawnSelected without any problems, but I can't find what the type Maybe Window is or how to use it.
I am getting this error:
xmonad.hs:100:41:
Couldn't match type `Maybe Window' with `()'
Expected type: X ()
Actual type: X (Maybe Window)
In the return type of a call of `gridselectWindow'
In the expression: gridselectWindow defaultGSConfig
In the expression:
((mod4Mask, xK_h), gridselectWindow defaultGSConfig)
Offline
What do you want to use it for? gridselectWindow returns the selected window, bringSelected is built around this function: it passes an action ('callback function') to withSelectedWindow to do something useful with the selected window.
Maybe represents something that is optional; it's either "Just value" or "Nothing". In this case, the user can cancel the selection procedure. withSelectedWindow is a helper that only runs the action in case the user selected a window (if you use gridselectWindow directly, you have to check for a Nothing yourself). You can use this to build your own action, but perhaps you were looking for goToSelected?
Last edited by Raynman (2014-03-26 09:44:07)
Offline
yes, I want to use something like gotoMenu from WindowBringer (dmenu).
I just want to view a grid of active windows on all wokrspaces and then, when selected one of them, go to this window.
I assumed gridselectWindow will do exactly this, but I am kinda new to haskell and have no idea how to perform a Null check you just described.
Offline
I only added a brief explanation of the Maybe type because you specifically mentioned it, but the main point was that you don't have to concern yourself with values of type Maybe Window; just use the slightly higher-level functions similar to bringSelected instead of dealing with the lower-level gridSelectWindow -- the one I mentioned at the end seems to do what you want.
Another bit of extra info (only if goToSelected is not enough or you want to learn more): from the documentation, you can also click on "Source". Then you can see how withSelectedWindow uses gridselectWindow and only runs an action/callback on the window "w" in the "Just w" case by pattern matching on the Maybe value. But I repeat, because this function checks for Nothing, you can simply give it a function to run on the selected window and you don't have to worry about the case where the user cancels the selection.
Offline
thanks for everything, but after all I used WindowBringer, as it uses dmenu and I can see the whole name of the window, which I couldn't with goToSelected.
Next thing I want to do is something like this:
when I switch between windows I want the layout to make spaces between the windows and when I am finished with selecting a window it goes back to layout with no "useless" spaces.
so in pseudo:
while changeWindowButton.isPressed() {
layout.makeSpaces(Windows);
}I configured my xmonad pretty long time ago, and even that I did with help of some tutorial or with complete config file from which I copied it and only edited parts I understood.
I am using this layout:
myLayout = ResizableTall 1 (3/100) (1/2) [] ||| tiled ||| Mirror tiled ||| Full
where
tiled = spacing 5 $ Tall nmaster delta ratio
nmaster = 1
ratio = 2/3
delta = 5/100
newLayout = avoidStruts $ smartBorders $ myLayout//edit: I didn't realize I can change the size of GridSelect cells, I feel stupid like some Windows user, I will take a closer look at it... I need some advice with the layout thing tho ![]()
Last edited by jilda (2014-03-26 15:04:32)
Offline
Count-corrupt mentioned some years ago (2010-07-28 00:45:30 with post nr. #375) in current thread that he had some things to still work out like with his config like "making Photoshop's floating dialogs stop moving on their own". I've the same issue & can't figure out how to stop Photoshop floating windows moving on their own. Google did not help me either to solve this problem. Does anyone have a solution for this? I've xmonad v. 0.11. running on arch linux with Photoshop CS5.1.
Offline