mirror of
https://gitlab.com/hyask/swaysome.git
synced 2025-12-10 07:44:43 +01:00
init: ignore disabled outputs
This commit is contained in:
parent
780e54abd4
commit
81fb306aec
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ fn init_workspaces(stream: &UnixStream, workspace_name: &String) {
|
|||
let outputs = get_outputs(&stream);
|
||||
|
||||
let cmd_prefix: String = "focus output ".to_string();
|
||||
for output in outputs.iter().rev() {
|
||||
for output in outputs.iter().filter(|x| x["active"] == true).rev() {
|
||||
let mut cmd = cmd_prefix.clone();
|
||||
cmd.push_str(&output["name"].as_str().unwrap());
|
||||
send_command(&stream, &cmd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue