fix(shortcuts): add switch to workspace

Adds the Switch to workspace [number] entries to the Navigation section.
This commit is contained in:
Vukašin Vojinović 2024-09-09 13:07:42 +02:00 committed by Michael Murphy
parent bb35fa7b65
commit f8cdc7af2f
2 changed files with 10 additions and 0 deletions

View file

@ -329,6 +329,7 @@ fn shortcuts() -> Section<crate::pages::Message> {
.on_clear(Message::Search(String::new()))
.on_input(Message::Search)
.apply(widget::container)
.padding([2, 0, 0, 0])
.center_x()
.width(Length::Fill);

View file

@ -88,6 +88,15 @@ pub const fn actions() -> &'static [Action] {
Action::SwitchOutput(Direction::Right),
Action::SwitchOutput(Direction::Up),
Action::SwitchOutput(Direction::Down),
Action::Workspace(1),
Action::Workspace(2),
Action::Workspace(3),
Action::Workspace(4),
Action::Workspace(5),
Action::Workspace(6),
Action::Workspace(7),
Action::Workspace(8),
Action::Workspace(9),
]
}