mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Don't need to enumerate
This commit is contained in:
parent
e495e2789c
commit
4350573ad9
2 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,8 @@ state['clientsCount'] = 0
|
|||
state['focusHistory'] = []
|
||||
state['stackingList'] = []
|
||||
|
||||
for i, monitor in enumerate(state['monitors']):
|
||||
for j, desktop in enumerate(monitor['desktops']):
|
||||
for monitor in state['monitors']:
|
||||
for desktop in monitor['desktops']:
|
||||
desktop['focusedNodeId'] = 0
|
||||
nullify_clients(desktop['root'])
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ def print_rules(prefix, node, path):
|
|||
print('bspc rule -a {}:{} -o node={}{}'.format(client['className'],
|
||||
client['instanceName'],
|
||||
prefix, '/'.join(path)))
|
||||
|
||||
for i, monitor in enumerate(state['monitors']):
|
||||
for j, desktop in enumerate(monitor['desktops']):
|
||||
print_rules('@^{}:^{}:/'.format(i+1, j+1), desktop['root'], [])
|
||||
|
|
Loading…
Add table
Reference in a new issue