|
4 | 4 | fromcontextlibimportsuppress
|
5 | 5 | fromtypingimportOptional
|
6 | 6 |
|
7 |
| - |
8 | 7 | defadd_index(dictionary:dict,dictionary_index:int)->dict:
|
9 | 8 | dictionary['index']=dictionary_index
|
10 | 9 | returndictionary
|
@@ -84,9 +83,9 @@ def get_workspace_by_window_hwnd(self, workspaces: list[Optional[dict]], window_
|
84 | 83 |
|
85 | 84 | defactivate_workspace(self,m_idx:int,ws_idx:int,wait:bool=False)->None:
|
86 | 85 | p=subprocess.Popen([self._komorebic_path,"focus-monitor-workspace",str(m_idx),str(ws_idx)],shell=True)
|
87 |
| - |
88 | 86 | ifwait:
|
89 | 87 | p.wait()
|
| 88 | + |
90 | 89 | defnext_workspace(self)->None:
|
91 | 90 | try:
|
92 | 91 | subprocess.Popen([self._komorebic_path,"cycle-workspace","next"],shell=True)
|
@@ -133,7 +132,6 @@ def flip_layout_horizontal_and_vertical(self) -> None:
|
133 | 132 |
|
134 | 133 | deftoggle(self,toggle_type:str,wait:bool=False)->None:
|
135 | 134 | try:
|
136 |
| - |
137 | 135 | command=f'"{self._komorebic_path}" focus-monitor-at-cursor && "{self._komorebic_path}" toggle-{toggle_type}'
|
138 | 136 | p=subprocess.Popen(command,shell=True)
|
139 | 137 |
|
|