From f8ca94f93ca75373481b2a698b222b827919f3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Thu, 16 Feb 2023 10:04:52 +0100 Subject: [PATCH] next and previous tag --- lupan-wm/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lupan-wm/src/main.rs b/lupan-wm/src/main.rs index b8d3850..4506015 100644 --- a/lupan-wm/src/main.rs +++ b/lupan-wm/src/main.rs @@ -80,6 +80,13 @@ fn raw_key_bindings() -> HashMap>> { "C-M-t" => focus_or_spawn("thunderbird", "thunderbird"), "M-S-q" => exit(), + "M-i" => modify_with(|cs| cs.current_tag().parse::().map_or((), |i| cs.focus_tag((i - 1).to_string()))), + "M-o" => modify_with(|cs| cs.current_tag().parse::().map_or((), |i| cs.focus_tag((i + 1).to_string()))), + "M-S-i" => modify_with(|cs| cs.current_tag().parse::().map_or((), |i| cs.move_focused_to_tag((i - 1).to_string()))), + "M-S-o" => modify_with(|cs| cs.current_tag().parse::().map_or((), |i| cs.move_focused_to_tag((i + 1).to_string()))), + "M-C-i" => modify_with(|cs| cs.current_tag().parse::().map_or((), |i| cs.pull_tag_to_screen((i - 1).to_string()))), + "M-C-o" => modify_with(|cs| cs.current_tag().parse::().map_or((), |i| cs.pull_tag_to_screen((i + 1).to_string()))), + // Switch theme "M-S-F6" => key_handler(move |_, _| { theme = if theme == "dark" { "light" } else { "dark" };