From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TJyAq-0006Yx-Pf for mharc-grub-devel@gnu.org; Thu, 04 Oct 2012 23:02:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJyAo-0006Yq-Qk for grub-devel@gnu.org; Thu, 04 Oct 2012 23:01:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJyAo-0000bA-1A for grub-devel@gnu.org; Thu, 04 Oct 2012 23:01:58 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:53321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJyAn-0000b3-Q1 for grub-devel@gnu.org; Thu, 04 Oct 2012 23:01:57 -0400 Received: by mail-lb0-f169.google.com with SMTP id k6so1003196lbo.0 for ; Thu, 04 Oct 2012 20:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:mime-version:content-transfer-encoding; bh=5bR3hb67YPf/NbH7nEi6Q4T0wgTGmzM6a8FWNyKICrg=; b=bdcvjOcqjW3p60bwD2sgqXpFkdCmfLgO6STuK6+qmD2C05lTaZam6rjE5TJavFrZzS 5wdO2VV3Obxg34f9EBqK4y9ZIutPIt20QvjREvl1/0PoBPPI/kM8A0NNfqGnjeJ1UOCc GkAv5hae/w0K4nRU4SmPJSg0fbgkmFbZvTJST3lf4Eo4cPT3ZIqVXGHnLO+rL+VJV1DU 4CiyEVY2+oWfcu5EVsad/NXDffwrcbU47/JUena3XOVITc5/4N//J94t6mzQEDaqzl5p YjcylP8yj3YMr9cLMGU4uwR5bJ4BlHxQAe6LYyag3hl4HkGgfpGndSuayQEgD8QOV99u TwkQ== Received: by 10.112.47.133 with SMTP id d5mr3498806lbn.47.1349406116641; Thu, 04 Oct 2012 20:01:56 -0700 (PDT) Received: from [192.168.10.142] (ppp83-237-5-4.pppoe.mtu-net.ru. [83.237.5.4]) by mx.google.com with ESMTPS id jk8sm2710730lab.7.2012.10.04.20.01.54 (version=SSLv3 cipher=OTHER); Thu, 04 Oct 2012 20:01:55 -0700 (PDT) Message-ID: <1349406113.2182.12.camel@opensuse.site> Subject: Re: Conditional themes? From: Andrey Borzenkov To: The development of GNU GRUB Date: Fri, 05 Oct 2012 07:01:53 +0400 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 03:01:59 -0000 В Чт., 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