From 0e1e486114d155650fe7eb048e787506dbba16f6 Mon Sep 17 00:00:00 2001 From: Joey Riches Date: Wed, 29 May 2024 21:36:08 +0100 Subject: [PATCH] schemas: Disable sleeping at gdm in on ac --- meson.build | 1 + schemas/gdm/meson.build | 12 ++++++++++++ ...me.settings-daemon.plugins.power.gschema.override | 2 ++ schemas/meson.build | 1 + schemas/org.gnome.Terminal.gschema.override | 1 + 5 files changed, 17 insertions(+) create mode 100644 schemas/gdm/meson.build create mode 100644 schemas/gdm/org.gnome.settings-daemon.plugins.power.gschema.override create mode 100644 schemas/org.gnome.Terminal.gschema.override diff --git a/meson.build b/meson.build index d441b05..0039144 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,7 @@ meson.add_install_script('meson_post_install.sh') path_prefix = get_option('prefix') path_datadir = join_paths(path_prefix, get_option('datadir')) path_schemadir = join_paths(path_datadir, 'glib-2.0', 'schemas') +path_gdmschemadir = join_paths(path_datadir, 'dconf', 'db', 'gdm.d') # Solusism path_envdir = get_option('with-profile-dir') diff --git a/schemas/gdm/meson.build b/schemas/gdm/meson.build new file mode 100644 index 0000000..ae91cf4 --- /dev/null +++ b/schemas/gdm/meson.build @@ -0,0 +1,12 @@ +gdm_schemas = [ + 'org.gnome.settings-daemon.plugins.power.gschema.override' +] + +custom_target('50_gnome_gdm.gschema.override', + output: '50_gnome_gdm.gschema.override', + capture: true, + input: gdm_schemas, + command: ['cat', '@INPUT@'], + install: true, + install_dir: path_gdmschemadir, +) diff --git a/schemas/gdm/org.gnome.settings-daemon.plugins.power.gschema.override b/schemas/gdm/org.gnome.settings-daemon.plugins.power.gschema.override new file mode 100644 index 0000000..f04a327 --- /dev/null +++ b/schemas/gdm/org.gnome.settings-daemon.plugins.power.gschema.override @@ -0,0 +1,2 @@ +[org.gnome.settings-daemon.plugins.power] +sleep-inactive-ac-type='nothing' diff --git a/schemas/meson.build b/schemas/meson.build index d52f361..0074bf3 100644 --- a/schemas/meson.build +++ b/schemas/meson.build @@ -26,4 +26,5 @@ custom_target('30_gnome_settings.gschema.override', install_dir: path_schemadir, ) +subdir('gdm') subdir('livecd') diff --git a/schemas/org.gnome.Terminal.gschema.override b/schemas/org.gnome.Terminal.gschema.override new file mode 100644 index 0000000..7a0415d --- /dev/null +++ b/schemas/org.gnome.Terminal.gschema.override @@ -0,0 +1 @@ +[org.gnome.terminal.screensaver]