#!/usr/bin/env python # file: renumber.py # author: Artur Skonecki # website: http://adb.cba.pl # description: renumber all windows to fill the gaps import os,sys import tools session=sys.argv[1] tools.renumber(session)
#!/usr/bin/env python # file: renumber.py # author: Artur Skonecki # website: http://adb.cba.pl # description: renumber all windows to fill the gaps import os,sys import tools session=sys.argv[1] try: max=sys.argv[3] except: max=sys.argv[2] max=int(max) try: min=sys.argv[4] except: min=0 min=int(min) tools.renumber(session,min,max)
#!/usr/bin/python # -*- coding: utf-8 -*- # # renumber.py : renumber windows to fill the gaps # # Copyright (C) 2010-2011 Artur Skonecki http://github.com/skoneka # # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import os import sys import tools session = (sys.argv)[1] tools.renumber(session, tools.require_dumpscreen_window(session, False)) tools.cleanup()