tiling: Allow orientation of active container to be swapped

This commit is contained in:
Victoria Brekenfeld 2022-03-29 14:41:09 +02:00
parent 2c311c67d1
commit b3ff2a7ca3
9 changed files with 105 additions and 18 deletions

View file

@ -12,6 +12,7 @@ use xkbcommon::xkb;
#[derive(Debug, Deserialize)]
pub struct Config {
pub key_bindings: HashMap<KeyPattern, Action>,
pub workspace_mode: crate::shell::Mode,
}
impl Config {
@ -39,6 +40,7 @@ impl Config {
Config {
key_bindings: HashMap::new(),
workspace_mode: crate::shell::Mode::global(),
}
}
}
@ -180,6 +182,7 @@ pub enum Action {
Workspace(u8),
MoveToWorkspace(u8),
Focus(FocusAction),
Orientation(crate::shell::layout::Orientation),
Spawn(String),
}