MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / init

Method init

plugins/single_plugins/oswitch.cpp:226–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225 public:
226 void init()
227 {
228 auto& bindings = wf::get_core().bindings;
229 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/next_output"},
230 &next_output);
231 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/next_output_with_win"},
232 &next_output_with_window);
233 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/prev_output"},
234 &prev_output);
235 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/prev_output_with_win"},
236 &prev_output_with_window);
237 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/left_output"},
238 &switch_left);
239 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/right_output"},
240 &switch_right);
241 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/above_output"},
242 &switch_up);
243 bindings->add_activator(wf::option_wrapper_t<wf::activatorbinding_t>{"oswitch/below_output"},
244 &switch_down);
245 }
246
247 void fini()
248 {

Callers

nothing calls this directly

Calls 1

add_activatorMethod · 0.45

Tested by

no test coverage detected