kranewm

An ICCCM & EWMH compliant X11 reparenting, dynamic window manager, written in C++
git clone git clone git://git.deurzen.net/kranewm.git
Log | Files | Refs | LICENSE

commit c687a38fa4c5585d2cb977a78c2ecff9297a33d1
parent b277c04b7edce385815fe7075099744583e30a12
Author: deurzen <m.deurzen@tum.de>
Date:   Wed, 29 Sep 2021 05:17:45 +0200

adds context activators

Diffstat:
Msrc/core/model.cc | 41+++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+), 0 deletions(-)

diff --git a/src/core/model.cc b/src/core/model.cc @@ -417,6 +417,47 @@ Model::Model(Connection& conn) CALL(load_layout(11)) }, + // context activators + { { Key::Escape, { Main, Ctrl } }, + CALL(toggle_context()) + }, + { { Key::RightBracket, { Main, Ctrl } }, + CALL(activate_next_context(Direction::Forward)) + }, + { { Key::LeftBracket, { Main, Ctrl } }, + CALL(activate_next_context(Direction::Backward)) + }, + { { Key::One, { Main, Ctrl } }, + CALL(activate_context(Util::Change<Index>{ 0 })) + }, + { { Key::Two, { Main, Ctrl } }, + CALL(activate_context(1)) + }, + { { Key::Three, { Main, Ctrl } }, + CALL(activate_context(2)) + }, + { { Key::Four, { Main, Ctrl } }, + CALL(activate_context(3)) + }, + { { Key::Five, { Main, Ctrl } }, + CALL(activate_context(4)) + }, + { { Key::Six, { Main, Ctrl } }, + CALL(activate_context(5)) + }, + { { Key::Seven, { Main, Ctrl } }, + CALL(activate_context(6)) + }, + { { Key::Eight, { Main, Ctrl } }, + CALL(activate_context(7)) + }, + { { Key::Nine, { Main, Ctrl } }, + CALL(activate_context(8)) + }, + { { Key::Zero, { Main, Ctrl } }, + CALL(activate_context(9)) + }, + // workspace activators { { Key::Escape, { Main } }, CALL(toggle_workspace_current_context())