X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=i3-event-hook;h=87487c6ebdcc0fac84584bf1045533e1d4917a30;hb=ca61084446e48fb0703ce2a203c1bd18ceaf4dfb;hp=bcee20e9d6077bd3aecb9cc5664a8842f606a533;hpb=989554cab0d0c59d1aab20496ba9550acd17e6e6;p=distro-setup diff --git a/i3-event-hook b/i3-event-hook index bcee20e..87487c6 100755 --- a/i3-event-hook +++ b/i3-event-hook @@ -58,7 +58,7 @@ def find_workspace(i3, window_id): def kill_single_win_containers(i3, e, node, parent): if len(parent.nodes) == 1 and len(node.nodes) == 0: - print("d1: killing parent") + #print("d1: killing parent") # parent is a single window container, kill it. # Note: based on testing, @@ -67,10 +67,10 @@ def kill_single_win_containers(i3, e, node, parent): # we could create our disabling file here # and delete it later if it wasn't already there. i3.command('[con_id=%s] focus' % node.id) - i3.command('mark i3ha') + i3.command('mark --add i3ha') i3.command('focus parent') i3.command('focus parent') - i3.command('mark i3hb') + i3.command('mark --add i3hb') i3.command('[con_mark="i3ha"] focus') i3.command('move window to mark i3hb') i3.command('unmark i3ha')