mirror of
https://gitlab.com/hyask/swaysome.git
synced 2025-12-09 23:34:42 +01:00
rename focus_to_{next,prev}_group functions
This commit is contained in:
parent
a8a80eb514
commit
d6eb1b62a6
2 changed files with 7 additions and 7 deletions
10
src/lib.rs
10
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue