diff --git a/src/lib.rs b/src/lib.rs index b394360..65f5084 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -564,15 +564,15 @@ impl SwaySome { self.send_command(&cmd); } - pub fn focus_container_to_next_group(&self) { - self.focus_container_to_next_or_prev_group(false); + pub fn focus_to_next_group(&self) { + self.focus_to_next_or_prev_group(false); } - pub fn focus_container_to_prev_group(&self) { - self.focus_container_to_next_or_prev_group(true); + pub fn focus_to_prev_group(&self) { + self.focus_to_next_or_prev_group(true); } - fn focus_container_to_next_or_prev_group(&self, go_to_prev: bool) { + fn focus_to_next_or_prev_group(&self, go_to_prev: bool) { let current_workspace_index: usize = self.get_current_workspace_index(); let focused_group_index = current_workspace_index / MAX_GROUP_WS; diff --git a/src/main.rs b/src/main.rs index 45eca15..06f7ffa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,10 +100,10 @@ fn main() { swaysome.move_workspace_group_to_prev_output(); } Command::NextGroup => { - swaysome.focus_container_to_next_group(); + swaysome.focus_to_next_group(); } Command::PrevGroup => { - swaysome.focus_container_to_prev_group(); + swaysome.focus_to_prev_group(); } Command::RearrangeWorkspaces => { swaysome.rearrange_workspaces();