add toggle focus between floating and tiled layers
Adds focus_floats(), toggle_focus_float_tiled(), and their IPC bindings so users can bind a key to swap focus between the floating and tiled layers.
This commit is contained in:
parent
23ad546a39
commit
d353779c10
8 changed files with 82 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ pub enum SimpleCommand {
|
|||
FocusHistory(Timeline),
|
||||
FocusLayerRel(LayerDirection),
|
||||
FocusTiles,
|
||||
ToggleFocusFloatTiled,
|
||||
CreateMark,
|
||||
JumpToMark,
|
||||
PopMode(bool),
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ impl ActionParser<'_> {
|
|||
"focus-below" => FocusLayerRel(LayerDirection::Below),
|
||||
"focus-above" => FocusLayerRel(LayerDirection::Above),
|
||||
"focus-tiles" => FocusTiles,
|
||||
"toggle-float-focus" => ToggleFocusFloatTiled,
|
||||
"create-mark" => CreateMark,
|
||||
"jump-to-mark" => JumpToMark,
|
||||
"clear-modes" => PopMode(false),
|
||||
|
|
|
|||
|
|
@ -218,6 +218,10 @@ impl Action {
|
|||
let persistent = state.persistent.clone();
|
||||
b.new(move || persistent.seat.focus_tiles())
|
||||
}
|
||||
SimpleCommand::ToggleFocusFloatTiled => {
|
||||
let persistent = state.persistent.clone();
|
||||
b.new(move || persistent.seat.toggle_focus_float_tiled())
|
||||
}
|
||||
SimpleCommand::CreateMark => {
|
||||
let persistent = state.persistent.clone();
|
||||
b.new(move || persistent.seat.create_mark(None))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue