| geheimdienst | if a function name has no letters, haskell treats it as infix. so "++" is a function name, only you can say "a ++ b". (for a regular function, say "append" it would have to be: "append a b") |
| edillinger | so its just sugar for ++(a,b) ? |
| geheimdienst | yes |
| edillinger | interesting |
| geheimdienst | in haskell you can actually write: (++) a b |
| geheimdienst | the parens are to make the normally-infix function prefix |
| geheimdienst | the reverse is backticks: a `append` b |
| Philonous | edillinger: Your right about the "every programm defines it's own language". Incidentally that's what's called an edsl, an embedded domains specific language. And that's pretty amazing when you think about it. |
| edillinger | i must be misunderstanding where this manageHook goes, could someone peek at http://pastebin.com/E54J8A0Z |
| geheimdienst | i agree it can be amazing, but if you aren't very careful designing your edsl, you might end up with unreadable code |
| geheimdienst | you have an extra comma in there |
| Philonous | geheimdienst: That is always true with any source language. |
| edillinger | no comma before manageHook ? |
| edillinger | oh, after fullFloat |
| geheimdienst | no, before you close the list |
| edillinger | now it says composeOne, isFullscreen and doFullFloat are not in scope |
| geheimdienst | good, that's one step forward |
| geheimdienst | add "import XMonad.Hooks.ManageHelpers" at the top |
| edillinger | nice, works now :) |
| edillinger | and i can watch hans rosling in full screen :) |
| edillinger | thanks a bunch |
| geheimdienst | you're welcome |
| mauke | yeah, flash videos is pretty much why I wrote isFullscreen :-) |
| geheimdienst | btw, bill gates posted on his blog the other day a few links to more hans rosling talks |
| edillinger | yea? i'll have to check that out, i love his talks |
| geheimdienst | here ya go http://www.thegatesnotes.com/(X(1)S(i4hswe452l40li55difghxbd))/Learning/article.aspx?ID=28&AspxAutoDetectCookieSupport=1 |
| geheimdienst | haven't watched them yet, but hans rosling is a great speaker |
| geheimdienst | philonous, what i meant was: "isFullscreen --> doFullFloat" is imho less readable than, say, "ifMatch isFullscreen doFullFloat" |
| geheimdienst | or using tuples like (condition, action) because you already know that from the key bindings |
| leafwiz | hey. anyone know how to map a keyboard key to button 2 |
| leafwiz | aka, I want o press a keyboard key to paste |
| geheimdienst | leafwiz, check out this: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Util-Paste.html |
| astroboy | I have just installed xmonad from darcs, following these instructions: http://www.haskell.org/haskellwiki/Xmonad/xmonad_development_tutorial . Now if I press M-q, or if I execute "xmonad --recompile; xmonad --restart", it quits xmonad bringing me back the login page instead of reloading it |
| astroboy | After various hattempts the problem is still there |
| astroboy | xmonad --restart logs me off |
| geheimdienst | what's xmonad --recompile say? |
| astroboy | geheimdienst: hi again (:. xmonad --recompile runs fine, no output |
| geheimdienst | hey :) |
| geheimdienst | strange |
| geheimdienst | any clues in .xsession-errors? |
| astroboy | mhm I don't have an xsession-errors in my home... |
| geheimdienst | your distribution might name it differently, or put it somewhere else ... check /var/log, might be in there. |
| astroboy | geheimdienst: I can't find it. I did a quick search and it seems that on gentoo .xsession-errors should be in the home. maybe is just that I have no errors...? |
| astroboy | or maybe my login manager is handling the thing |
| astroboy | yes probably it is |
| astroboy | i'm going to disconnect now |
| geheimdienst | ok |
| astroboy | geheimdienst: that's what happens: http://pastebin.com/bvGraead |
| astroboy | it doesn't recognise the --restart flag...? |
| astroboy | but then it shouldn't stop at all... |
|
|
| geheimdienst | okay we're getting close. probably you have an old xmonad version which doesn't recognize --restart |
| astroboy | I have the latest darcs version :P |
| astroboy | I mean I have just compiled it |
| astroboy | wait I'll try calling the exact executable |
| astroboy | geheimdienst: no, the version is right. |
| aavogt | if it doesn't recognize --restart, you won't make the old xmonad go away |
| astroboy | aavogt: but it worked perfectly fine before (installed with cabal install) |
| astroboy | then I built the darcs version and unregistered the cabal install one |
| geheimdienst | run xmonad --version for me please |
| geheimdienst | i just want to rule out you have 2 xmonad binaries, an old one somewhere in /usr and a new one in ~/.cabal/bin/ |
| aavogt | what's the problem with that case anyways? |
| astroboy | geheimdienst: xmonad --version gives 0.9.1. I still have the one in .cabal but I unregistered. The new one is the one I installed with $HOME as the build prefix, as they say in that guide. |
| geheimdienst | hang on a minute |
| astroboy | sure, thanks |
| geheimdienst | puzzling |
| geheimdienst | could you run: "xmonad --resume blabla"? |
| geheimdienst | normally, that should tell you an X protocoll error, bad access |
| astroboy | blabla like what? |
| astroboy | xmonad 0.9.1 |
| astroboy | astroboy@mcnulty ~/.cabal/bin $ xmonad --resume |
| astroboy | xmonad: user error (unrecognized flags) |
| geheimdienst | doesn't matter :-) that xmonad won't run anyway |
| geheimdienst | okay we're getting close i think |
| astroboy | actually wait a second |
| astroboy | I installed on a different prefix before |
| astroboy | maybe a setup clean? |
| geheimdienst | i just checked the source. when you run xmonad --restart, it does a few things and then runs "xmonad --resume stuff stuff stuff" |
| geheimdienst | but that seems to be generating the log message we saw |
| astroboy | mh yes |
| geheimdienst | (and it crashes, exiting X) |
| geheimdienst | i still think there's an old binary somewhere which doesn't recognize the --resume flag |
| geheimdienst | try which -a xmonad |
| astroboy | just a sec, recompiling... |
| astroboy | you are right, it gets the cabal version |
| Action: geheimdienst thumps his chest and lets out a tarzan yell |
| astroboy | lol |
| astroboy | so how do I proceed now? ghc-pkg unregister is not enough apparently |
| astroboy | wait a second |
| astroboy | ~/bin is not even in my path |
| astroboy | which prefix should I use? or should I add it in my path? |
| geheimdienst | i have added .cabal/bin to my path |
| geheimdienst | works for me ... |
| astroboy | geheimdienst: I think there is a misunderstanding here: I want to run the darcs version I compiled |
| geheimdienst | i always just do "cabal install xmonad" with no --prefix or anything |
| geheimdienst | yeah, i do the same. in the directory with the xmonad sources, i run cabal install |
| geheimdienst | it then uses the xmonad.cabal file right from that directroy |
| astroboy | ohhhh ok, I didn't know I could do that... |
| astroboy | thanks alot |
| astroboy | thanks again eheh |
| geheimdienst | you're welcome :) |
| astroboy | ok it works now |
| leafwiz | hey, I have tried out import XMonad.Util.Paste , since I want to paste the X11 selection. |
| leafwiz | but that type takes away the spaces. |
| leafwiz | I found out: http://linuxaleph.blogspot.com/2008/11/mapping-middle-click-to-keyboard-key.html |
| leafwiz | :) |
| tjgillies | how do i do a horizonal split? |
| geheimdienst | you could hit mod-. |
| geheimdienst | for a more permanent solution, add Mirror Tall to your layouts |
| tjgillies | thnx |
| pooky | I just want to say, I think xmonad is great. While not a power user, the base functionality I got out of the package (so to speak) has been great. |
| babilen | Hi all. I would like to implement a wmii-style workspace model in xmonad. I want workspaces based on client tags (N tags per client) and therefore need a way to tag windows with 1-N tags and want workspaces created dynamically once a new tag is assigned to a client. Once there are no clients with a certain tag anymore the corresponding workspace should be removed. |
| babilen | I am not looking for a complete solution (although it would be nice if such a thing would already exist) - but want to gather some tips on how to implement this. |
| babilen | I would also like to assign certain tag rules for clients, such as "firefox" should be tagged "net" on creation .. |
| babilen | any ideas? |
| dschoepe | babilen: http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Floating_a_window_or_sending_it_to_a_specific_workspace_by_default |
| dschoepe | err, that's a better link: http://haskell.org/haskellwiki/Xmonad/General_xmonad.hs_config_tips#Making_window_float_by_default.2C_or_send_it_to_specific_workspace |
| babilen | dschoepe: Thank you, I'll take a look :) |
| babilen | Do you think that this is achievable in around 5-8h or is this whole endeavour doomed because xmonad has a different (i.e. rather static) workspace model? |
| babilen | The link you gave me uses static workspaces as well. It seems as if it would be possible to achieve what I want with a combination of DynamicWorkspaces Actions.TagWindows and some tagging rules as exemplified in the link you gave me ... |
| dschoepe | babilen: Ah, I only answered your second question. There are some contrib modules like DynamicWorkspaces and TagWindows that should help |
| dschoepe | oh, and then I didn't read that you already found those :) |
| dschoepe | Depending on your experience with xmonad/haskell it should be possible to implement in 8h |
| babilen | dschoepe: Ok, that are good news :) I'll see what I can come up with. If you have ideas just let me know as I am currently gathering information and try to come up with a plan to achieve this. |
| dschoepe | babilen: Now that I understand correctly what you are trying to do: For tagging a window upon creation, you can do something like this: className =? "foo" --> liftX . addTag "net" =<< ask |
| dschoepe | then you'd have to make keybindings for opening a Prompt to query the tags to display and use the withTagged function to shift those windows to the current workspace |
| kynski | Hello everybody! |
| kynski | I would like to ask. What is xmproc resposible for? |
| Entroacceptor | kynski: it's the file descriptor to write to the spawned xmobar? |
| kynski | Entroacceptor: Ok, and what if I would like to use dzen2. Where's configuration file for it? |
| kynski | Entroacceptor: And how can I add it to xmonad? I would like to make something like info-panel above all windows. |
| kynski | Is there any way to do that? |
| Entroacceptor | you spawn dzen instead |
| Entroacceptor | it has no own config file |
| Entroacceptor | look http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-DynamicLog.html and http://dzen.geekmode.org/dwiki/doku.php?id=dzen:mainindex |
| kynski | Entroacceptor: Thanks. |
| tlonim | in floating windows, if I dont them to overlap what is the solution ? -- this is in reference to mplayer -- when i open a second video it overlaps the first video's window -- can it be randomized ? |
| --- Mon Jul 12 2010 |
Popular searches: