10

Is it possible to save an xmonad session to a file and reload it on the fly? I don't want to save only the last session but to be able to save different sessions to different files and reload it if I want.

Stéphane Gimenez
  • 28,527
  • 3
  • 76
  • 87
student
  • 17,875
  • 31
  • 103
  • 169
  • If you are using a display manager to log in, could you not create various sessions in that? You can create a few of these, to start programs and end with `exec xmonad`, and then choose the one you want at log in. You can then use xmonad's `manageHook`s to place them in the right arrangement on the right workspace. – Edd Steel Dec 30 '11 at 16:02
  • I just stumbled upon [`xmonad-sessions`](https://github.com/zaxtax/xmonad-sessions), a 2-year old try at doing something akin to session mgmt using XMonad. Haven't tested it, though. I guess you'd get the best of the bargain with a combination of a lightweight session manager (XFCE's, maybe?) using XMonad for window management. – sr_ Mar 06 '12 at 09:40

1 Answers1

4

If you just want to start a certain set of program, e.g. everything you need for graphic editing or so, you could just write some little shell script to start those. manageHooks can then place the windows in the right workspaces and so on.

This would have the added benefit that you could "restore" multiple settings at once, e.g. chat (pidgin, irssi), browsing (chrome).

The only drawback I see is that you need to manually write your "session files".

kronn
  • 389
  • 1
  • 4
  • 13