logo
IRC Archive / Freenode / #xmonad / 2010 / July / 11 / 1
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
the parens are to make the normally-infix function prefix
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
you have an extra comma in there
Philonous
geheimdienst: That is always true with any source language.
edillinger
no comma before manageHook ?
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
add "import XMonad.Hooks.ManageHelpers" at the top
edillinger
nice, works now :)
and i can watch hans rosling in full screen :)
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
haven't watched them yet, but hans rosling is a great speaker
philonous, what i meant was: "isFullscreen --> doFullFloat" is imho less readable than, say, "ifMatch isFullscreen doFullFloat"
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
aka, I want o press a keyboard key to paste
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
After various hattempts the problem is still there
xmonad --restart logs me off
geheimdienst
what's xmonad --recompile say?
astroboy
geheimdienst: hi again (:. xmonad --recompile runs fine, no output
geheimdienst
hey :)
strange
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...?
or maybe my login manager is handling the thing
yes probably it is
i'm going to disconnect now
geheimdienst
ok
astroboy
geheimdienst: that's what happens: http://pastebin.com/bvGraead
it doesn't recognise the --restart flag...?
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
I mean I have just compiled it
wait I'll try calling the exact executable
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)
then I built the darcs version and unregistered the cabal install one
geheimdienst
run xmonad --version for me please
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
could you run: "xmonad --resume blabla"?
normally, that should tell you an X protocoll error, bad access
astroboy
blabla like what?
xmonad 0.9.1
astroboy@mcnulty ~/.cabal/bin $ xmonad --resume
xmonad: user error (unrecognized flags)
geheimdienst
doesn't matter :-) that xmonad won't run anyway
okay we're getting close i think
astroboy
actually wait a second
I installed on a different prefix before
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"
but that seems to be generating the log message we saw
astroboy
mh yes
geheimdienst
(and it crashes, exiting X)
i still think there's an old binary somewhere which doesn't recognize the --resume flag
try which -a xmonad
astroboy
just a sec, recompiling...
you are right, it gets the cabal version
geheimdienst
(Action) thumps his chest and lets out a tarzan yell
astroboy
lol
so how do I proceed now? ghc-pkg unregister is not enough apparently
wait a second
~/bin is not even in my path
which prefix should I use? or should I add it in my path?
geheimdienst
i have added .cabal/bin to my path
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
yeah, i do the same. in the directory with the xmonad sources, i run cabal install
it then uses the xmonad.cabal file right from that directroy
astroboy
ohhhh ok, I didn't know I could do that...
thanks alot
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.
but that type takes away the spaces.
I found out: http://linuxaleph.blogspot.com/2008/11/mapping-middle-click-to-keyboard-key.html
:)
tjgillies
how do i do a horizonal split?
geheimdienst
you could hit mod-.
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.
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.
I would also like to assign certain tag rules for clients, such as "firefox" should be tagged "net" on creation ..
any ideas?
dschoepe
babilen: http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Floating_a_window_or_sending_it_to_a_specific_workspace_by_default
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 :)
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?
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
oh, and then I didn't read that you already found those :)
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
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!
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?
Entroacceptor: And how can I add it to xmonad? I would like to make something like info-panel above all windows.
Is there any way to do that?
Entroacceptor
you spawn dzen instead
it has no own config file
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 ?