pub struct Settings {
pub activation_key: String,
pub activation_delay: u64,
pub overlay_delay: u64,
pub quick_switch_threshold: u64,
pub border_width: f32,
pub border_color: Color,
pub background_color: Color,
pub card_color: Color,
pub text_color: Color,
pub hint_color: Color,
pub hint_matched_color: Color,
pub env_files: Vec<String>,
}Expand description
Global settings for timing and appearance
Controls activation delays, UI appearance, and global environment variables.
§Examples
use open_sesame::config::Settings;
let settings = Settings::default();
assert_eq!(settings.activation_delay, 200);
assert_eq!(settings.overlay_delay, 720);
assert_eq!(settings.quick_switch_threshold, 250);Fields§
§activation_key: StringActivation key combo for launching sesame (e.g., “super+space”, “alt+tab”) Used by –setup-keybinding to configure COSMIC shortcuts
activation_delay: u64Delay in ms before activating a match (allows typing gg, ggg)
overlay_delay: u64Delay in ms before showing full overlay (0 = immediate)
quick_switch_threshold: u64Quick switch threshold in ms - Alt+Tab released within this time = instant switch to previous window
border_width: f32Border width in pixels for focus indicator
border_color: ColorBorder color for focus indicator (hex: “#RRGGBB” or “#RRGGBBAA”)
background_color: ColorBackground overlay color
card_color: ColorCard background color
text_color: ColorText color
hint_color: ColorHint badge color
hint_matched_color: ColorMatched hint color
env_files: Vec<String>Global env files loaded for all launches (direnv .env style)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.