mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
Merge pull request #412 from JakeStanger/fix/swaybar-command
fix(cli): error when launched via `swaybar_command`
This commit is contained in:
commit
2a4587612a
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ use serde::{Deserialize, Serialize};
|
||||||
pub struct Args {
|
pub struct Args {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
pub command: Option<Command>,
|
pub command: Option<Command>,
|
||||||
|
|
||||||
|
/// `bar_id` argument passed by `swaybar_command`.
|
||||||
|
/// Not used.
|
||||||
|
#[arg(short('b'), hide(true))]
|
||||||
|
sway_bar_id: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn handle_response(response: Response) {
|
pub fn handle_response(response: Response) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue