Add focus-window-top/bottom/down-or-top/up-or-bottom actions

This commit is contained in:
Ivan Molodetskikh
2025-02-05 17:18:21 +03:00
parent 900da597e4
commit c41f93a468
9 changed files with 168 additions and 0 deletions
+16
View File
@@ -493,6 +493,22 @@ impl<W: LayoutElement> Monitor<W> {
}
}
pub fn focus_window_top(&mut self) {
self.active_workspace().focus_window_top();
}
pub fn focus_window_bottom(&mut self) {
self.active_workspace().focus_window_bottom();
}
pub fn focus_window_down_or_top(&mut self) {
self.active_workspace().focus_window_down_or_top();
}
pub fn focus_window_up_or_bottom(&mut self) {
self.active_workspace().focus_window_up_or_bottom();
}
pub fn move_to_workspace_up(&mut self) {
let source_workspace_idx = self.active_workspace_idx;