Create file for gnome-console settings

This commit is contained in:
Joseph DiGiovanni 2024-07-27 14:28:09 -04:00
parent f7ee2f185e
commit 390820286c
2 changed files with 40 additions and 3 deletions

View file

@ -2,15 +2,14 @@
{
imports = [
./outline-theme
./extensions
./gnome-console.nix
./firefox-gnome-theme.nix
./outline-theme
./steam-adwaita-theme.nix
];
dconf.settings = {
"org/gnome/Console".theme = "auto";
"org/gnome/desktop/background" = {
picture-uri = "file:///home/${config.home.username}/Pictures/Wallpapers/Light.jpg";
picture-uri-dark = "file:///home/${config.home.username}/Pictures/Wallpapers/Dark.jpg";

View file

@ -0,0 +1,38 @@
{ lib, ... }:
{
dconf.settings = {
"org/gnome/Console" =
let
fontSize = 10;
fontWidth = fontSize * 0.8;
lineSpacing = fontSize * 0.4 * 2; # Each line has a space of 0.4em above and below it
terminalMode = {
# Based on VT100 video modes
standard = [ 80 24 ];
standardTall = [ 80 43 ];
extendedWide = [ 132 24 ];
extended = [ 132 43 ];
};
terminalSize = terminalMode.extended;
in
{
custom-font = "Source Code Pro " + toString fontSize;
last-window-size = with builtins; lib.hm.gvariant.mkTuple [
(ceil ((elemAt terminalSize 0 * fontWidth) + 12))
(ceil ((elemAt terminalSize 1 * (fontSize + lineSpacing)) + 48))
];
theme = "night";
use-system-font = false;
};
};
}