sway-groups-core 0.2.0

Core library for sway-groups: DB entities, services, sway/waybar IPC.
Documentation
//! Generic key/value settings entity for DB-stored runtime flags.
//!
//! Used for global flags that need to be togglable at runtime (e.g.
//! `show_hidden_workspaces`). The `active_group` per-output state stays on
//! the `outputs` table.

use sea_orm::entity::prelude::*;

#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "settings")]
pub struct Model {
    #[sea_orm(primary_key, auto_increment = false)]
    pub key: String,
    pub value: String,
}

impl ActiveModelBehavior for ActiveModel {}

/// Key constant for the `show_hidden_workspaces` global flag.
pub const SHOW_HIDDEN_WORKSPACES: &str = "show_hidden_workspaces";