forked from mirrors/nixpkgs
cinnamon.cinnamon-gsettings-overrides: Override gnome-terminal settings with Fedora's default
This fixes issues caused by vanilla gnome-terminal and mint-artwork: - Grey text and black background, this makes text almost unreadable. - Only one 'New Terminal' button in menu which means you cannot open tab and open window in the same menu.
This commit is contained in:
parent
ad5d00e65c
commit
1528a7ca86
|
@ -2,6 +2,7 @@
|
||||||
, runCommand
|
, runCommand
|
||||||
, nixos-artwork
|
, nixos-artwork
|
||||||
, glib
|
, glib
|
||||||
|
, gnome
|
||||||
, gtk3
|
, gtk3
|
||||||
, gsettings-desktop-schemas
|
, gsettings-desktop-schemas
|
||||||
, extraGSettingsOverrides ? ""
|
, extraGSettingsOverrides ? ""
|
||||||
|
@ -35,9 +36,20 @@ let
|
||||||
cinnamon-session
|
cinnamon-session
|
||||||
cinnamon-settings-daemon
|
cinnamon-settings-daemon
|
||||||
cinnamon-common
|
cinnamon-common
|
||||||
|
gnome.gnome-terminal
|
||||||
gtk3
|
gtk3
|
||||||
] ++ extraGSettingsOverridePackages;
|
] ++ extraGSettingsOverridePackages;
|
||||||
|
|
||||||
|
gsettingsOverrides = ''
|
||||||
|
# Use Fedora's default to make text readable and
|
||||||
|
# restore ununified menu.
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/200017
|
||||||
|
[org.gnome.Terminal.Legacy.Settings]
|
||||||
|
theme-variant='dark'
|
||||||
|
unified-menu=false
|
||||||
|
|
||||||
|
${extraGSettingsOverrides}
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
|
|
||||||
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this
|
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this
|
||||||
|
@ -53,7 +65,7 @@ runCommand "cinnamon-gsettings-overrides" { preferLocalBuild = true; }
|
||||||
chmod -R a+w "$data_dir"
|
chmod -R a+w "$data_dir"
|
||||||
|
|
||||||
cat - > "$schema_dir/nixos-defaults.gschema.override" <<- EOF
|
cat - > "$schema_dir/nixos-defaults.gschema.override" <<- EOF
|
||||||
${extraGSettingsOverrides}
|
${gsettingsOverrides}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
${glib.dev}/bin/glib-compile-schemas --strict "$schema_dir"
|
${glib.dev}/bin/glib-compile-schemas --strict "$schema_dir"
|
||||||
|
|
Loading…
Reference in a new issue