input: Use cosmic-comp-config crate
This commit is contained in:
parent
a5fcd5326e
commit
154c67ee6a
4 changed files with 61 additions and 9 deletions
|
|
@ -5,6 +5,7 @@ use cosmic::{
|
|||
iced_sctk::commands,
|
||||
iced_widget::core::layout,
|
||||
};
|
||||
use cosmic_comp_config::XkbConfig;
|
||||
use cosmic_settings_page as page;
|
||||
use itertools::Itertools;
|
||||
use tracing::error;
|
||||
|
|
@ -12,15 +13,6 @@ use tracing::error;
|
|||
pub mod keyboard;
|
||||
mod mouse;
|
||||
|
||||
#[derive(Debug, Default, Clone, serde::Deserialize, serde::Serialize)]
|
||||
pub struct XkbConfig {
|
||||
pub rules: String,
|
||||
pub model: String,
|
||||
pub layout: String,
|
||||
pub variant: String,
|
||||
pub options: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum Message {
|
||||
SetAcceleration(bool),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue