unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Dmitry Nikolaev <cameltheman@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Set screen resolution in X.
Date: Sun, 23 Aug 2015 23:45:15 +0200	[thread overview]
Message-ID: <87io85vfv8.fsf@gnu.org> (raw)
In-Reply-To: <CAH3JXcEV_QFqkn5mP3CQ7ec8Yz3v4oz30WcDR9A=PnMv21d1Pw@mail.gmail.com> (Dmitry Nikolaev's message of "Tue, 18 Aug 2015 11:26:38 +0300")

Sorry for the late reply.

Dmitry Nikolaev <cameltheman@gmail.com> skribis:

> (define (my-slim-service)
>         (mlet %store-monad ((config (xorg-configuration-file
>                 #:resolutions '((1366 768)))))
>         (slim-service #:startx
>                 (xorg-start-command #:configuration-file config))))

The problem is in the line above: ‘xorg-start-command’ is a “monadic
procedure” so its result must be bound in an ‘mlet’:

  (define (my-slim-service)
    (mlet %store-monad ((config (xorg-configuration-file ...))
                        (startx (xorg-start-command ...)))
      (slim-service #:startx startx)))

HTH!

Ludo’.

PS: Somebody reported the same thing on IRC last week, maybe it was you
    or Camel?

  parent reply	other threads:[~2015-08-23 21:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-18  8:26 Set screen resolution in X Dmitry Nikolaev
2015-08-19 19:20 ` Alex Kost
2015-08-31 11:46   ` Dmitry Nikolaev
2015-09-01 21:18     ` Ludovic Courtès
2015-08-23 21:45 ` Ludovic Courtès [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-14  9:27 Camel
2015-08-13  7:12 Camel
2015-08-13  9:23 ` Andy Wingo
2015-08-13 12:32   ` Thompson, David
2015-08-20 13:06 ` 宋文武
2015-08-12  7:08 Camel
2015-08-10 18:16 Camel
2015-08-10 20:16 ` Thompson, David
2015-08-11 20:06   ` Camel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87io85vfv8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=cameltheman@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).