Replaced state cacher with gsettings

This commit is contained in:
Erik Reider
2022-06-19 14:01:12 +02:00
parent 8425afbfa8
commit aab565d723
9 changed files with 42 additions and 94 deletions

10
data/meson.build Normal file
View File

@@ -0,0 +1,10 @@
install_data('org.erikreider.swaync.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)
compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()]
)
endif

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="swaync">
<schema id="org.erikreider.swaync" path="/org/erikreider/swaync/">
<key name="dnd-state" type="b">
<default>false</default>
<summary>The current do not disturb state</summary>
<description>Whether notifications should be silent or not</description>
</key>
</schema>
</schemalist>