fix: forgor rmenu-plugin and to actually update config

This commit is contained in:
imgurbot12 2024-04-09 15:02:57 -07:00
parent 14373d9f12
commit 2e436401f3
2 changed files with 14 additions and 2 deletions

View file

@ -120,15 +120,24 @@ impl Into<Entry> for EntryArgs {
/// Arguments for Options CLI Command
#[derive(Debug, Args)]
struct OptionArgs {
/// Override Applicaiton Theme
/// Override Applicaiton CSS
#[arg(short = 'C', long)]
pub css: Option<String>,
/// Override Default View Page-Size
#[arg(short = 's', long)]
pub page_size: Option<usize>,
/// Override Default Percentage Completion Before Page Load
#[arg(short = 'l', long)]
pub page_load: Option<f64>,
/// Override Selection Jump Distance
#[arg(short = 'd', long)]
pub jump_dist: Option<usize>,
/// Override Select on Hover Option
#[arg(long)]
pub hover_select: Option<bool>,
/// Override Single-Click Activation Option
#[arg(long)]
pub single_click: Option<bool>,
// search settings
/// Override Default Placeholder
#[arg(short = 'P', long)]
@ -184,7 +193,6 @@ struct OptionArgs {
#[arg(short = 'w', long)]
pub window_width: Option<f64>,
/// Override Window Height
#[arg(short = 'h', long)]
pub window_height: Option<f64>,
}
@ -196,6 +204,8 @@ impl Into<Options> for OptionArgs {
page_load: self.page_load,
jump_dist: self.jump_dist,
placeholder: self.placeholder,
hover_select: self.hover_select,
single_click: self.single_click,
search_restrict: self.search_restrict,
search_min_length: self.search_min_length,
search_max_length: self.search_max_length,

View file

@ -27,6 +27,8 @@ plugins:
cache: onlogin
options:
css: ~/.config/rmenu/themes/launchpad.css
hover_select: true
single_click: true
page_size: 500
transparent: true
window_width: 1200