all repos — openbox @ 6a8f5f44e123c9ade7964e2051dd0d6a9858961c

openbox fork - make it a bit more like ryudo

added sendTo action
Dana Jansens danakj@orodu.net
commit

6a8f5f44e123c9ade7964e2051dd0d6a9858961c

parent

5cb52056efcac25dd4b0d3035f860e5b1870bca1

3 files changed, 22 insertions(+), 0 deletions(-)

jump to
M util/epist/actions.hhutil/epist/actions.hh

@@ -46,6 +46,8 @@ moveWindowDown,

moveWindowLeft, moveWindowRight, + sendTo, //done + nextWindow, //done for now prevWindow, //done for now nextWindowOnAllWorkspaces, //done
M util/epist/epist.ccutil/epist/epist.cc

@@ -124,6 +124,22 @@ _actions.push_back(Action(Action::toggleomnipresent,

XKeysymToKeycode(getXDisplay(), XStringToKeysym("O")), Mod1Mask | ControlMask)); + _actions.push_back(Action(Action::sendTo, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("1")), + Mod1Mask | ControlMask, 0)); + _actions.push_back(Action(Action::sendTo, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("2")), + Mod1Mask | ControlMask, 1)); + _actions.push_back(Action(Action::sendTo, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("3")), + Mod1Mask | ControlMask, 2)); + _actions.push_back(Action(Action::sendTo, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("4")), + Mod1Mask | ControlMask, 3)); activateGrabs(); }
M util/epist/screen.ccutil/epist/screen.cc

@@ -221,6 +221,10 @@ case Action::lower:

window->lower(); return; + case Action::sendTo: + window->sendTo(it->number()); + return; + case Action::toggleomnipresent: if (window->desktop() == 0xffffffff) window->sendTo(_active_desktop);