Change console font
This commit is contained in:
parent
4b4a43209c
commit
0e875355ec
|
@ -4,9 +4,9 @@
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/Console" =
|
"org/gnome/Console" =
|
||||||
let
|
let
|
||||||
fontSize = 10;
|
fontSize = 12;
|
||||||
fontWidth = fontSize * 0.8;
|
fontWidth = 8;
|
||||||
lineSpacing = fontSize * 0.4 * 2; # Each line has a space of 0.4em above and below it
|
lineSpacing = 2 * 2; # Each line has a space above and below it
|
||||||
|
|
||||||
terminalMode = {
|
terminalMode = {
|
||||||
# Based on VT100 video modes
|
# Based on VT100 video modes
|
||||||
|
@ -19,11 +19,11 @@
|
||||||
terminalSize = terminalMode.extended;
|
terminalSize = terminalMode.extended;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
custom-font = "Source Code Pro " + toString fontSize;
|
custom-font = "Unifont " + toString fontSize;
|
||||||
|
|
||||||
last-window-size = with builtins; lib.hm.gvariant.mkTuple [
|
last-window-size = with builtins; lib.hm.gvariant.mkTuple [
|
||||||
(ceil ((elemAt terminalSize 0 * fontWidth) + 12))
|
(ceil ((elemAt terminalSize 0 * fontWidth) + 12))
|
||||||
(ceil ((elemAt terminalSize 1 * (fontSize + lineSpacing)) + 48))
|
(ceil (((elemAt terminalSize 1 + .5) * (fontSize + lineSpacing)) + 48))
|
||||||
];
|
];
|
||||||
|
|
||||||
theme = "night";
|
theme = "night";
|
||||||
|
|
Loading…
Reference in a new issue