mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
gnome: Replace displays=2 settings screen with the displays>2 one
This commit is contained in:
parent
6615c349ed
commit
8b972a4959
3 changed files with 39 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
baseline = ./modules/baseline.nix;
|
||||
cli = ./modules/cli.nix;
|
||||
gnome = ./modules/gnome.nix;
|
||||
gnome-monitor-settings-tweak = ./modules/gnome-monitor-settings-tweak;
|
||||
mouse-dpi = ./modules/mouse-dpi.nix;
|
||||
phpipam = ./modules/phpipam.nix;
|
||||
pipewire = ./modules/pipewire.nix;
|
||||
|
|
13
modules/gnome-monitor-settings-tweak/control-center.patch
Normal file
13
modules/gnome-monitor-settings-tweak/control-center.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
|
||||
index f9d4ae044..ef2a8a693 100644
|
||||
--- a/panels/display/cc-display-panel.c
|
||||
+++ b/panels/display/cc-display-panel.c
|
||||
@@ -853,7 +853,7 @@ rebuild_ui (CcDisplayPanel *panel)
|
||||
n_outputs = g_list_length (outputs);
|
||||
type = config_get_current_type (panel);
|
||||
|
||||
- if (n_outputs == 2 && n_usable_outputs == 2)
|
||||
+ if (n_outputs == 2 && n_usable_outputs == 99)
|
||||
{
|
||||
/* We only show the top chooser with two monitors that are
|
||||
* both usable (i.e. two monitors incl. internal and lid not closed).
|
25
modules/gnome-monitor-settings-tweak/default.nix
Normal file
25
modules/gnome-monitor-settings-tweak/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.sconfig.gnome-monitor-settings-tweak;
|
||||
in
|
||||
{
|
||||
options.sconfig.gnome-monitor-settings-tweak = lib.mkOption {
|
||||
default = true;
|
||||
type = lib.types.bool;
|
||||
description = "Replace displays=2 settings screen with the displays>2 one";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg {
|
||||
nixpkgs.overlays = [
|
||||
|
||||
(self: super: {
|
||||
gnome = super.gnome // {
|
||||
gnome-control-center = super.gnome.gnome-control-center.overrideAttrs (attr: {
|
||||
patches = attr.patches ++ [ ./control-center.patch ];
|
||||
});
|
||||
};
|
||||
})
|
||||
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue