From: Andrey Borzenkov <arvidjaar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Conditional themes?
Date: Fri, 05 Oct 2012 07:01:53 +0400 [thread overview]
Message-ID: <1349406113.2182.12.camel@opensuse.site> (raw)
In-Reply-To: <op.wlnqxkckw201t7@cnd0370px4.ent.rt.verigy.net>
В Чт., 04/10/2012 в 16:09 +0200, Dr. Tilmann Bubeck пишет:
> An even more general idea would be to implement a shellish backticks
> operator $() and extend some commands to print out information (here
> "videoinfo"), like:
>
> width=$(videoinfo --show-width)
> if [ "${width}" -lt 800 ]; then
> theme=${root}/grub2/themes/small
> else
> theme=${root}/grub2/themes/large
> fi
>
While I miss this possibility every now and then, for this particular
use case you can simply extend videoinfo with something like
videoinfo --show-width --set width
similar to what "search --set ..." does.
-andrey
next prev parent reply other threads:[~2012-10-05 3:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 14:09 Conditional themes? Dr. Tilmann Bubeck
2012-10-05 2:22 ` Gerard Butler
2012-10-06 11:08 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-10-05 3:01 ` Andrey Borzenkov [this message]
2012-10-06 15:12 ` Dr. Tilmann Bubeck
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349406113.2182.12.camel@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.