[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional themes?
From: |
Andrey Borzenkov |
Subject: |
Re: Conditional themes? |
Date: |
Fri, 05 Oct 2012 07:01:53 +0400 |
В Чт., 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