all repos — fluxbox @ e05230ea4b685ca09229511be0f3ec9f876a654e

custom fork of the fluxbox windowmanager

deploy new key-bindings to old keys-files via fluxbox-update_configs
Mathias Gumz akira at fluxbox dot org
commit

e05230ea4b685ca09229511be0f3ec9f876a654e

parent

a10bab0f7cf9d41b9d462c643a3971c3ac348953

1 files changed, 17 insertions(+), 0 deletions(-)

jump to
M util/fluxbox-update_configs.ccutil/fluxbox-update_configs.cc

@@ -379,6 +379,23 @@ write_file(keyfilename, whole_keyfile);

new_version = 10; } + if (old_version < 11) { // update keys for OnLeftGrip/OnRightGrip/OnWindowBorder + + string whole_keyfile = read_file(keyfilename); + string new_keyfile = ""; + // let's put our new keybindings first, so they're easy to find + new_keyfile += "!mouse actions added by fluxbox-update_configs\n"; + new_keyfile += "OnTitlebar Move1 :StartMoving\n"; + new_keyfile += "OnLeftGrip Move1 :StartResizing bottomleft\n"; + new_keyfile += "OnRightGrip Move1 :StartResizing bottomright\n"; + new_keyfile += "OnWindowBorder Move1 :StartMoving\n\n"; + new_keyfile += whole_keyfile; // don't forget user's old keybindings + + write_file(keyfilename, new_keyfile); + + new_version = 11; + } + return new_version; }