services: console-font: Update example with HDPI font suggestion.
This solution was kindly provided by Bernard M. Wiedemann. * gnu/services/base.scm (console-font-service-type): Add ter132n (terminus 132 nomal) font example, for HDPI displays. * doc/guix.texi (Invoking guix system): Update to `guix system search console' example output.
This commit is contained in:
parent
0e9c253313
commit
022ad24c41
2 changed files with 24 additions and 10 deletions
|
@ -25958,26 +25958,36 @@ supported:
|
||||||
Display available service type definitions that match the given regular
|
Display available service type definitions that match the given regular
|
||||||
expressions, sorted by relevance:
|
expressions, sorted by relevance:
|
||||||
|
|
||||||
|
@cindex HDPI
|
||||||
|
@cindex HiDPI
|
||||||
|
@cindex resolution
|
||||||
@example
|
@example
|
||||||
$ guix system search console font
|
$ guix system search console
|
||||||
name: console-fonts
|
name: console-fonts
|
||||||
location: gnu/services/base.scm:729:2
|
location: gnu/services/base.scm:806:2
|
||||||
extends: shepherd-root
|
extends: shepherd-root
|
||||||
description: Install the given fonts on the specified ttys (fonts are
|
description: Install the given fonts on the specified ttys (fonts are per
|
||||||
+ per virtual console on GNU/Linux). The value of this service is a list
|
+ virtual console on GNU/Linux). The value of this service is a list of
|
||||||
+ of tty/font pairs like:
|
+ tty/font pairs. The font can be the name of a font provided by the `kbd'
|
||||||
|
+ package or any valid argument to `setfont', as in this example:
|
||||||
+
|
+
|
||||||
+ '(("tty1" . "LatGrkCyr-8x16"))
|
+ '(("tty1" . "LatGrkCyr-8x16")
|
||||||
relevance: 20
|
+ ("tty2" . (file-append
|
||||||
|
+ font-tamzen
|
||||||
|
+ "/share/kbd/consolefonts/TamzenForPowerline10x20.psf"))
|
||||||
|
+ ("tty3" . (file-append
|
||||||
|
+ font-terminus
|
||||||
|
+ "/share/consolefonts/ter-132n"))) ; for HDPI
|
||||||
|
relevance: 9
|
||||||
|
|
||||||
name: mingetty
|
name: mingetty
|
||||||
location: gnu/services/base.scm:1048:2
|
location: gnu/services/base.scm:1190:2
|
||||||
extends: shepherd-root
|
extends: shepherd-root
|
||||||
description: Provide console login using the `mingetty' program.
|
description: Provide console login using the `mingetty' program.
|
||||||
relevance: 2
|
relevance: 2
|
||||||
|
|
||||||
name: login
|
name: login
|
||||||
location: gnu/services/base.scm:775:2
|
location: gnu/services/base.scm:860:2
|
||||||
extends: pam
|
extends: pam
|
||||||
description: Provide a console log-in service as specified by its
|
description: Provide a console log-in service as specified by its
|
||||||
+ configuration value, a `login-configuration' object.
|
+ configuration value, a `login-configuration' object.
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
|
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
|
||||||
|
;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -818,7 +819,10 @@ package or any valid argument to @command{setfont}, as in this example:
|
||||||
'((\"tty1\" . \"LatGrkCyr-8x16\")
|
'((\"tty1\" . \"LatGrkCyr-8x16\")
|
||||||
(\"tty2\" . (file-append
|
(\"tty2\" . (file-append
|
||||||
font-tamzen
|
font-tamzen
|
||||||
\"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\")))
|
\"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))
|
||||||
|
(\"tty3\" . (file-append
|
||||||
|
font-terminus
|
||||||
|
\"/share/consolefonts/ter-132n\"))) ; for HDPI
|
||||||
@end example\n")))
|
@end example\n")))
|
||||||
|
|
||||||
(define* (console-font-service tty #:optional (font "LatGrkCyr-8x16"))
|
(define* (console-font-service tty #:optional (font "LatGrkCyr-8x16"))
|
||||||
|
|
Reference in a new issue