diff --git a/woman/help.py b/woman/help.py index 8de8e1f452e371b4069ca5c905ec8450c963c98d..e1df6319bb7a841689881383bea59d89ff8ce955 100644 --- a/woman/help.py +++ b/woman/help.py @@ -84,7 +84,7 @@ or L / H - Focus next / previous slave will be active <ENTER> - Go to the active workspace <ESC> - Go to the previous used workspace o - Move workspace to next output -w / e - Increase / decrease screenshot size +z / x - Increase / decrease screenshot size `, 1-9, 0, -, = - Active the corresponding slave F1-F12 - Active the corresponding master f<id> - Focus window/container/workspace @@ -115,6 +115,7 @@ c<id>... - select container/window/workspace and ... s<id/workspace> - swap current workspace with window/container/workspace d<workspace> - move current workspace to workspace d<id><key> - move current workspace near to container (see `m`) +e<master> - exchange (swap) whole current master with specified Shortcuts in search bar (input mode): diff --git a/woman/qt.py b/woman/qt.py index 55da9410d4cde14bd307ecfb04bbe8e918aef06b..2cb0fbf90ade27a14df41af7b599b975f550c30b 100755 --- a/woman/qt.py +++ b/woman/qt.py @@ -1282,20 +1282,25 @@ def qt_main(): nd_from = self.focused_widget with nd_from.marked_context(QColor(255, 0, 0)): await ck_move(nd_from) - elif mod == 0 and key == ord('R'): # Undocumented - for i in self._workspaces.values(): - i.metadata_changed() + elif mod == 0 and key == ord('E'): + if self.focused_master is None: + raise NoSutchKey(key, mod) + key, mod = await continuing_key() + if mod != 0 or key not in F_KEYS: + raise NoSutchKey(key, mod) + swap_master(self.focused_master, F_KEYS[key]) + self.load_i3_tree() elif mod == 0 and key == ord('T'): m_win.end_get_continuing_key() self.load_i3_tree() elif mod == 0 and key == ord('O'): self.focused_widget.move_to_otput() - elif mod == 0 and key == ord('W'): + elif mod == 0 and key == ord('Z'): try: self.set_screenshot_size([x for x in SCREENSHOTS_SIZES if x > self.screenshot_size][0]) except IndexError: pass - elif mod == 0 and key == ord('E'): + elif mod == 0 and key == ord('X'): try: self.set_screenshot_size([x for x in SCREENSHOTS_SIZES if x < self.screenshot_size][-1]) except IndexError: