Changing workspaces on both physical screens

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing workspaces on both physical screens

Christophe Garion
Hello,

I am using xmonad on my Linux laptop and pdfpc
(https://pdfpc.github.io/) for presentation. pdfpc uses two windows, one
with current slide, next slides, notes etc. and the other one with the
presentation only. I usually use workspace 8 on my laptop with the
window with notes and workspace 9 on the projector with the presentation
window.

I sometimes switch workspaces to show code snippets in emacs etc. and I
want to be able to quickly restore the "pdfpc" workspaces. I use the
following binding:

((modMask .|. shiftMask , xK_p), (do windows (W.view "9");
                                                 swapNextScreen;
                                                 windows (W.view "8")))

which may not be the most elegant solution :)

Is there a more "haskell" way to do the same thing?

Best,

Christophe

--
Christophe Garion
GPG: 1982 15B2 64AC 3C34 532D  BF19 6CD6 246C 62DA 5A7F
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: Changing workspaces on both physical screens

Brent Yorgey
This looks fine to me.  If you want something a bit more general you could try using


which lets you set up named groups of workspaces so you can quickly switch to them.  It is designed to let you do this *dynamically* but there's no reason you couldn't create a "static" group in your startupHook.

-Brent

On Thu, Dec 13, 2018 at 5:17 AM Christophe Garion <[hidden email]> wrote:
Hello,

I am using xmonad on my Linux laptop and pdfpc
(https://pdfpc.github.io/) for presentation. pdfpc uses two windows, one
with current slide, next slides, notes etc. and the other one with the
presentation only. I usually use workspace 8 on my laptop with the
window with notes and workspace 9 on the projector with the presentation
window.

I sometimes switch workspaces to show code snippets in emacs etc. and I
want to be able to quickly restore the "pdfpc" workspaces. I use the
following binding:

((modMask .|. shiftMask , xK_p), (do windows (W.view "9");
                                                 swapNextScreen;
                                                 windows (W.view "8")))

which may not be the most elegant solution :)

Is there a more "haskell" way to do the same thing?

Best,

Christophe

--
Christophe Garion
GPG: 1982 15B2 64AC 3C34 532D  BF19 6CD6 246C 62DA 5A7F
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: Changing workspaces on both physical screens

Christophe Garion

On Sat, Dec 15 2018 at 09:22:27 PM, Brent Yorgey <[hidden email]> wrote:

> This looks fine to me.  If you want something a bit more general you could
> try using
>
> http://hackage.haskell.org/package/xmonad-contrib-0.15/docs/XMonad-Actions-DynamicWorkspaceGroups.html
>
>
> which lets you set up named groups of workspaces so you can quickly switch
> to them.  It is designed to let you do this *dynamically* but there's no
> reason you couldn't create a "static" group in your startupHook.

Yes, that's a good idea!

Thanks,

Christophe

--
Christophe Garion
GPG: 1982 15B2 64AC 3C34 532D  BF19 6CD6 246C 62DA 5A7F
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad