예제 #1
0
#!/usr/bin/env python
# file: kill-group.py
# author: Artur Skonecki
# website: http://adb.cba.pl
# description: kill recursively all windows in a group

import sys
import tools

session=sys.argv[1]

win=sys.argv[2]

tools.kill_group(session,win)
예제 #2
0
# -*- coding: utf-8 -*-
#
#    kill-group.py : recursively kill a group and all windows inside
#
#    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 sys
import tools
import util

session = (sys.argv)[1]

windows = util.expand_numbers_list((sys.argv)[2:])

tools.kill_group(session, tools.require_dumpscreen_window(session, False),
                 windows)
tools.cleanup()
예제 #3
0
#!/usr/bin/env python
# file: kill-group.py
# author: Artur Skonecki
# website: http://adb.cba.pl
# description: kill recursively all windows in a group

import sys
import tools

session=sys.argv[1]
groupids=sys.argv[2:]
tools.kill_group(session,groupids)