mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 02:31:04 +02:00
feat: IPC for get_visible, set_visible, new bar name
config option
This commit is contained in:
parent
2f8443f349
commit
2ccb2633c6
6 changed files with 93 additions and 15 deletions
|
@ -21,6 +21,13 @@ pub fn create_bar(
|
|||
config: Config,
|
||||
) -> Result<()> {
|
||||
let win = ApplicationWindow::builder().application(app).build();
|
||||
let bar_name = config
|
||||
.name
|
||||
.clone()
|
||||
.unwrap_or_else(|| format!("bar-{}", get_unique_usize()));
|
||||
|
||||
win.set_widget_name(&bar_name);
|
||||
info!("Creating bar {}", bar_name);
|
||||
|
||||
setup_layer_shell(
|
||||
&win,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue