cosmic-applets/cosmic-applet-input-sources/src/config.rs

22 lines
624 B
Rust
Raw Normal View History

2024-05-06 15:39:04 +02:00
// Copyright 2024 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
2024-04-11 11:24:58 +02:00
use cosmic::cosmic_config::{self, cosmic_config_derive::CosmicConfigEntry, CosmicConfigEntry};
use cosmic_comp_config::XkbConfig;
use serde::{Deserialize, Serialize};
2024-05-06 15:39:04 +02:00
2024-04-11 11:24:58 +02:00
pub const CONFIG_VERSION: u64 = 1;
2024-05-06 15:39:04 +02:00
2024-04-11 11:24:58 +02:00
#[derive(Clone, CosmicConfigEntry, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct Config {}
impl Default for Config {
fn default() -> Self {
Self {}
}
}
2024-05-06 15:39:04 +02:00
2024-04-11 11:24:58 +02:00
#[derive(Clone, CosmicConfigEntry, Debug, Deserialize, PartialEq, Serialize, Default)]
pub struct CosmicCompConfig {
pub xkb_config: XkbConfig,
}