def main(qtile): from dgroups import DGroups, Match, simple_key_binder global mod groups = { 'h4x': {'init': True, 'persist': True, 'spawn': 'guake', 'exclusive': True}, 'design': {}, 'www': {'exclusive': True}, # master set the master window/windows of layout 'emesene': {'layout': 'tile', 'master': Match(role=['main'])}, 'gajim': {'layout': 'tile', 'master': Match(role=['roster'])}, } apps = [ {'match': Match(wm_class=['Guake.py', 'MPlayer', 'Exe', 'Gnome-keyring-prompt'], wm_type=['dialog', 'utility', 'splash']), 'float': True}, {'match': Match(wm_class=['Gimp']), 'group': 'design', 'float': True}, {'match': Match(wm_class=['emesene']), 'group': 'emesene'}, {'match': Match(wm_class=['Chromium-browser', 'Minefield'], role=['browser']), 'group': 'www'}, {'match': Match(wm_class=['Gajim.py']), 'group': 'gajim'}, {'match': Match(wm_class=['Wine']), 'float': True, 'group': 'wine'}, ] dgroups = DGroups(qtile, groups, apps, simple_key_binder(mod))
def main(qtile): from dgroups import DGroups, Match, simple_key_binder dynamic_groups = { 'music': {'exclusive': False, 'spawn': 'clementine'}, 'www': {'exclusive': False, 'layout': 'max'}, 'io': {'exclusive': False, 'layout': 'pidgin'}, 'java': {'exclusive': False, 'layout': 'stack'}, } # persist any already set up groups global static_groups for group in static_groups: dynamic_groups[group] = {'persist': True} apps = [ {'match': Match(wm_class=['Firefox', 'google-chrome', 'Google-chrome']), 'group': 'www'}, {'match': Match(wm_class=['Pidgin'], role=['Buddy List']), 'group': 'io'}, {'match': Match(wm_class=['Clementine', 'Viridian']), 'group': 'music'}, {'match': Match(wm_class=['sun-awt-X11-XFramePeer', 'GroupWise']), 'group': 'java'}, ] dgroups = DGroups(qtile, dynamic_groups, apps, simple_key_binder('mod3'))
def main(qtile): from dgroups import DGroups, Match, simple_key_binder global mod groups = { 'term': {'init': True, 'persist': True, 'spawn': 'urxvt', 'exclusive': True}, 'emacs': {'persist': True, # 'spawn': 'emacs', 'exclusive': True}, 'www': {'init': True, 'exclusive': True # 'spawn': 'chromium' }, } apps = [ {'match': Match( wm_class=[ 'Guake.py', 'Xephyr', 'MPlayer', 'Exe', 'Gnome-keyring-prompt'], wm_type=['dialog', 'utility', 'splash']), 'float': True}, {'match': Match(wm_class=['Chromium-browser', 'Minefield'], role=['browser']), 'group': 'www'}, {'match': Match(wm_class=['URxvt']), 'group': 'term'}, {'match': Match(wm_class=['Emacs']), 'group': 'emacs'} ] DGroups(qtile, groups, apps, simple_key_binder(mod))
def main(qtile): from dgroups import DGroups, Match, simple_key_binder import re groups = { 'h4x': {'init': True, 'persist': True, 'exclusive': True}, 'design': {}, 'www': {'exclusive': True}, # master set the master window/windows of layout 'emesene': {'layout': 'tile', 'master': Match(role=['main'])}, 'gajim': {'layout': 'tile', 'master': Match(role=['roster']), 'exclusive': True}, } apps = [ {'match': Match(wm_class=['Gimp']), 'group': 'design', 'float': True}, {'match': Match(wm_class=['Terminator', 'Qterminal']), 'group': 'h4x'}, {'match': Match(wm_class=['emesene']), 'group': 'emesene'}, {'match': Match(wm_class=['Chromium-browser', 'Minefield'], role=['browser']), 'group': 'www'}, {'match': Match(wm_class=['Gajim.py']), 'group': 'gajim'}, {'match': Match(wm_class=['Wine']), 'float': True, 'group': 'wine'}, {'match': Match(wm_class=['Xephyr']), 'float': True}, # Everything i want to be float, but don't want to change group {'match': Match(title=['nested', 'gscreenshot'], wm_class=['Guake.py', 'MPlayer', 'Exe', re.compile('Gnome-keyring-prompt.*?'), 'Terminal'], wm_type=['dialog', 'utility', 'splash']), 'float': True, 'intrusive': True}, ] dgroups = DGroups(qtile, groups, apps, simple_key_binder(mod)) key = Key([], "F12", lazy.function(TermHack(qtile, 'h4x'))) qtile.mapKey(key) key = Key(['shift'], "F12", lazy.function(to_urgent)) qtile.mapKey(key)