Create file for gnome-console settings
This commit is contained in:
parent
837f38c0e5
commit
d7e37366c2
|
@ -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";
|
||||
|
|
38
home/common/gnome/gnome-console.nix
Normal file
38
home/common/gnome/gnome-console.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue