Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions config/src/shortcuts/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ pub enum Action {
/// Toggle between tiling and floating window states for the active window
ToggleWindowFloating,

/// Tile/snap a floating window to a screen zone (edge or corner)
TileWindow(TilingZone),

/// Change focus to the given workspace ID
Workspace(u8),

Expand Down Expand Up @@ -279,3 +282,16 @@ impl std::ops::Not for Orientation {
}
}
}

/// Defines the zone to tile/snap a floating window to
#[derive(Copy, Clone, Debug, Deserialize, Eq, Ord, PartialEq, PartialOrd, Serialize)]
pub enum TilingZone {
Top,
TopRight,
Right,
BottomRight,
Bottom,
BottomLeft,
Left,
TopLeft,
}