pub struct GeneralConfig {Show 19 fields
pub ui_type: Option<String>,
pub default_script_shell: Option<String>,
pub no_icons: Option<bool>,
pub theme: Option<String>,
pub theme_colors: Option<ThemeColorsConfig>,
pub renderer: Renderer,
pub max_history: Option<u32>,
pub font_size: Option<f32>,
pub font_family: Option<String>,
pub window_width: Option<f32>,
pub window_height: Option<f32>,
pub padding: Option<f32>,
pub sort_mode: SortMode,
pub fallbacks: Vec<String>,
pub main_view: Option<Vec<String>>,
pub clipboard_history: ClipboardHistory,
pub terminal_classes: Vec<String>,
pub show_preview: Option<bool>,
pub preview: PreviewConfig,
}Expand description
General configuration for persistent defaults
Fields§
§ui_type: Option<String>§default_script_shell: Option<String>§no_icons: Option<bool>§theme: Option<String>§theme_colors: Option<ThemeColorsConfig>§renderer: RendererRenderer for the native UI: cpu (default, faster to open) or gpu.
An ICED_BACKEND environment variable takes precedence.
max_history: Option<u32>§font_size: Option<f32>§font_family: Option<String>§window_width: Option<f32>§window_height: Option<f32>§padding: Option<f32>§sort_mode: SortMode§fallbacks: Vec<String>§main_view: Option<Vec<String>>Sources mixed into the main view, in display order, when typing without
an addon trigger (native UI only). Entries: launchers, browser_tabs,
windows, system, media, audio, bluetooth, pass,
text_snippets.<name> and script_filters.<name>. When set, launchers
only show if launchers is listed.
clipboard_history: ClipboardHistoryClipboard manager for {clipboard:N} snippet placeholders
terminal_classes: Vec<String>Extra window classes treated as terminals by hypr_paste (sent Ctrl+Shift+V
instead of Ctrl+V). Added to the built-in list; matched case-insensitively.
show_preview: Option<bool>Show the Alfred-style right-hand preview pane in native mode.
By default, previews are shown automatically for addons (snippets, file browser,
script filters, etc.) and hidden for standard launcher entries unless show_preview: true
is set in general or on the launcher entry. Can also be toggled at runtime with Ctrl+P.
preview: PreviewConfigAppearance of the right-hand preview pane (font, size, colours, width)
Trait Implementations§
Source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
Source§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl Default for GeneralConfig
impl Default for GeneralConfig
Source§impl<'de> Deserialize<'de> for GeneralConfig
impl<'de> Deserialize<'de> for GeneralConfig
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>,
Source§impl JsonSchema for GeneralConfig
impl JsonSchema for GeneralConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnsafeUnpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeClone for T
impl<T> MaybeDebug for T
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSync for Twhere
T: Sync,
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().