], dpToPx(30), ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()), Click([mod], "Button6", lazy.screen.next_group(skip_managed=True)), Click([mod], "Button7", lazy.screen.prev_group(skip_managed=True)), ] dgroups_key_binder = None dgroups_app_rules = [] # type: List main = None follow_mouse_focus = False bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *layout.Floating.default_float_rules, Match(wm_class='confirmreset'), # gitk Match(wm_class='makebranch'), # gitk
widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.QuickExit(), ], 30, ), ), ] # Drag floating layouts. mouse = [ Drag(["control"], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag(["control"], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click(["control"], "Button2", lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] # type: List follow_mouse_focus = True # LV consider False bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. #*layout.Floating.default_float_rules, #Match(wm_class='confirmreset'), # gitk #Match(wm_class='makebranch'), # gitk #Match(wm_class='maketag'), # gitk #Match(wm_class='ssh-askpass'), # ssh-askpass #Match(title='branchdialog'), # gitk
Key([], "XF86HomePage", app_or_group('WWW', '~/.local/bin/qutebrowser')), Key([], "XF86Mail", app_or_group('E-Mail', 'thunderbird')), ] for i in groups: if i.persist == True and not isinstance(i, ScratchPad): keys.extend([ # mod1 + letter of group = switch to group Key([mod], i.name, lazy.group[i.name].toscreen()), # mod1 + shift + letter of group = switch to & move focused window to group Key([mod, "shift"], i.name, window_to_group(i.name)), # mod1 + control + letter of group = switch to & move focused window to group Key([mod, "control"], i.name, windows_to_group(i.name)), ]) # Drag floating layouts. mouse = [ Drag(["control", alt], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag(["control", alt], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click(["control", alt], "Button2", lazy.window.bring_to_front()), Click([alt], "Button3", context_menu()), ]
29, background="#28282828", margin=10), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button2", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button3", lazy.window.bring_to_front()) ] @hook.subscribe.client_new def dialogs(window): if (window.window.get_wm_type() == 'dialog' or window.window.get_wm_transient_for() or not window.window.get_wm_class() or 'gmrun' in window.window.get_wm_class() or 'emulator64-arm' in window.window.get_wm_class()): window.floating = True @hook.subscribe.screen_change def restart_on_randr(ev):
margin=[5,5,5,5], #opacity=0.8, ), bottom=bar.Gap(5), left=bar.Gap(5), right=bar.Gap(5), wallpaper='~/wallpaper/ff.jpg', wallpaper_mode='fill', ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Click([mod, "control"], "Button1", lazy.window.toggle_floating()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] # type: List main = None follow_mouse_focus = False bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. {'wmclass': 'confirm'}, {'wmclass': 'dialog'},
] # Drag floating layouts. mouse = [ Drag( [mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position() ), Drag( [mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size() ), Click( [mod], "Button2", lazy.window.toggle_floating(), ) ] dgroups_key_binder = None dgroups_app_rules = [] # type: List follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *layout.Floating.default_float_rules, Match(wm_class='confirmreset'), # gitk Match(wm_class='makebranch'), # gitk Match(wm_class='maketag'), # gitk Match(wm_class='ssh-askpass'), # ssh-askpass
screens = [ Screen(), Screen(), ] # Drag floating layouts. mouse = [ Drag(["mod4"], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag(["mod4"], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click(["mod4"], "Button2", lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] # type: List main = None follow_mouse_focus = False bring_front_click = False cursor_warp = False floating_layout = layout.Floating( float_rules=[ { 'wmclass': 'confirm' }, { 'wmclass': 'dialog'
border_width=[5, 0, 5, 0], border_color="#2e3440", ), bottom=bar.Gap(10), left=bar.Gap(10), right=bar.Gap(10), ), ] # Drag floating layouts. mouse = [ Drag("M-1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag("M-3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click("M-2", lazy.window.bring_to_front()), Click("M-C-3", lazy.spawn("jgmenu --csv-file=~/.config/jgmenu/qtile.csv")), Click("M-A-3", lazy.spawn("jgmenu_run")), ] # Startup scripts @hook.subscribe.startup_once def start_once(): home = os.path.expanduser("~") subprocess.call([home + "/.config/qtile/autostart.sh"]) # Window swallowing @hook.subscribe.client_new def _swallow(window):
wallpaper = "/home/daniel/Pictures/Wallpapers/manjaro.png", wallpaper_mode = 'fill', top = bar.Bar(widgets=init_widgets_screen1(), size=30) ), Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=30)) ] screens = init_screens() # MOUSE CONFIGURATION mouse = [ Drag([KeyboardKey.SUPER.value], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([KeyboardKey.SUPER.value], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([KeyboardKey.SUPER.value], "Button2", lazy.window.toggle_floating()) ] dgroups_key_binder = None dgroups_app_rules = [] # Hooks @hook.subscribe.client_new def assign_app_group(client): programs_for_groups = { GroupName.GAMING.value: ['steam', 'Minecraft Launcher', 'minecraft-launcher'] } wm_class = client.window.get_wm_class()[0]
layouts = [ CustomBsp(border_focus='#bd93f9', border_width=2, margin=6, fair=False), layout.Max(), ] mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()), Click([], "Button9", lazy.spawn('xte "key XF86AudioPlay"')), Click([], "Button8", lazy.spawn('xte "key XF86AudioNext"')), ] dgroups_key_binder = None dgroups_app_rules = [] main = None # WARNING: this is deprecated and will be removed soon follow_mouse_focus = False bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ *layout.Floating.default_float_rules, ]) auto_fullscreen = True focus_on_window_activation = "smart"
], 28, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()), Click([mod], "Button4", lazy.screen.prev_group()), Click([mod], "Button5", lazy.screen.next_group()), ] dgroups_key_binder = None dgroups_app_rules = [] # type: List main = None # WARNING: this is deprecated and will be removed soon follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating( float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *layout.Floating.default_float_rules, Match(wm_class='confirmreset'), # gitk
for i in range(10): keys.extend([ Key( [Mod.M], str((i + 1) % 10), lazy.function(_group_index_to_screen, i), desc=f'Switch to group {i + 1}', ), Key( [Mod.M, Mod.S], str((i + 1) % 10), lazy.window.function(winutil.to_group_index, i), desc=f'Switch to & move focused window to group {i + 1}', ), ]) mouse = [ Drag( [Mod.M], 'Button1', lazy.window.set_position_floating(), start=lazy.window.get_position(), ), Drag( [Mod.M], 'Button3', lazy.window.set_size_floating(), start=lazy.window.get_size(), ), Click( [Mod.M], 'Button2', lazy.window.bring_to_front(), ), ]
], 30, ), ), ] # Drag floating layouts. mouse = [ Drag([k_super], 'Button1', lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([k_super], 'Button3', lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([k_super], 'Button2', lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] main = None follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating() auto_fullscreen = True # XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this # string besides java UI toolkits; you can see several discussions on the # mailing lists, github issues, and other WM documentation that suggest setting # this string if your java app doesn't work correctly. We may as well just lie
mouse = [ # move window around Drag([super_key], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), # resize window Drag([super_key], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), # bring window to front Click([super_key, alt_key], "Button1", lazy.window.bring_to_front()) ] groups = [ Group('a', spawn='kitty'), Group('s', spawn='vivaldi'), Group('d'), Group('f'), # We simply can't use spotify as a special separated group (e.g 'music') # their implemetation doesn't respect window manager rules # see: https://wiki.archlinux.org/index.php/Spotify#Not_respecting_window_manager_rules # # note: I know spotifywm-git and I just don't wanna install it Group('g', spawn='spotify',
# Drag floating layouts. mouse = [ Drag( [k.SUPER], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position(), ), Drag( [k.SUPER], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size(), ), Click([k.SUPER], "Button2", lazy.window.bring_to_front()), ] dgroups_key_binder = None dgroups_app_rules = [] # type: List follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_types = [ "notification", "toolbar", "splash", "dialog", "utility", "menu",
foreground=Colors.highlight_text, ), ], FONTSIZE+0, # Bar height background=Colors.bg, ), ), ] # Emulate function keys as 'super' + f* fk = "python3 ~/github/programs/presskey ctrl+alt+f" keys.extend([EzKey("M-" + str(i), lazy.spawn(fk+str(i))) for i in range(1,9)]) # For Logitech M570 mouse = [ Click("8", lazy.spawn(program("terminal"))), # Macro 2 = Open terminal Click("9", lazy.spawn(program("pause"))), # Macro 1 = Open menu Click("M-9", lazy.window.kill()), # 'Super' + Macro 1 = Kill window Click("M-4", lazy.spawn(program("vol_up"))), # 'Super' + Wheel = increase volume Click("M-5", lazy.spawn(program("vol_down"))) # 'Super' + Wheel = derease volume ] @hook.subscribe.client_new def client_new(client): # Rules for new programs if client.name == 'Discord': client.togroup('d') elif client.name == 'Mozilla Firefox': client.togroup('s') elif client.name == 'Atom Dev': client.togroup('a')
Key([mod], 'Right', lazy.screen.next_group()), Key([mod], 'Left', lazy.screen.prev_group()), Key([mod], 'space', lazy.next_layout()), Key([mod], 'Up', lazy.window.toggle_fullscreen()), Key([mod], 'Down', lazy.window.toggle_floating()), Key([mod, 'shift'], '1', lazy.window.togroup("Web")), Key([mod, 'shift'], '2', lazy.window.togroup("Code")), Key([mod, 'shift'], '3', lazy.window.togroup("Files")), Key([mod, 'shift'], '4', lazy.window.togroup("GFX")), Key([mod, 'shift'], '5', lazy.window.togroup("Misc")), Key([mod, 'shift'], 'equal', lazy.layout.increase_ratio()), Key([mod], 'minus', lazy.layout.decrease_ratio()), Key([mod, 'control'], 'r', lazy.restart()), Key([mod, 'control'], 'l', lazy.shutdown()), ] dgroups_key_binder = simple_key_binder(mod) mouse = [ Drag( [mod], "Button1", lazy.window.set_position_floating(), # Move floating windows start=lazy.window.get_position()), Drag( [mod], "Button3", lazy.window.set_size_floating(), # Resize floating windows start=lazy.window.get_size()), Click([mod, "shift"], "Button1", lazy.window.bring_to_front()) ] # Bring floating window to front
def init_mouse(): return [Drag([mod], "Button1", lazy.window.set_position_floating(), # Move floating windows start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), # Resize floating windows start=lazy.window.get_size()), Click([mod, "shift"], "Button1", lazy.window.bring_to_front())] # Bring floating window to front
foreground="#a9b1d6", background="#1a1b26", ), ), ] # Drag floating layouts. mouse = [ Drag([defaults["mod"]], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([defaults["mod"]], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([defaults["mod"]], "Button2", lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] # type: List follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *layout.Floating.default_float_rules, Match(wm_class='confirmreset'), # gitk Match(wm_class='makebranch'), # gitk Match(wm_class='maketag'), # gitk Match(wm_class='ssh-askpass'), # ssh-askpass Match(title='branchdialog'), # gitk
from libqtile.config import Drag, Click, Key from libqtile.command import lazy from groups import groups mod = "mod4" mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()), Click([mod, "shift"], "Button2", lazy.window.kill()), ] keys = [ # Applications Key([mod], "Return", lazy.spawn("st")), Key([mod], "b", lazy.spawn("chromium")), Key([mod, "shift"], "b", lazy.spawn("chromium --incognito")), Key([mod], "d", lazy.spawn("dmenurun")), Key([mod], "q", lazy.spawn("qute")), Key([mod], "e", lazy.spawn("dmenuunicode")), Key([mod, "shift"], "e", lazy.spawn("dmenukaomoji")), Key([mod, "shift"], "w", lazy.spawn("wpa-cute")), Key([mod], "v", lazy.spawn("st -e vim")), Key([mod, "shift"], "s", lazy.spawn("sr-menu")),
############################ #### MOUSE BINDINGS #### ############################ mouse = [ Drag(M, "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag(M, "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), # Use mouse back and forward to interract with floating windows without mod key # Drag([], "Button8", lazy.window.set_size_floating(), start=lazy.window.get_size()), # Drag([], "Button9", lazy.window.set_position_floating(), start=lazy.window.get_position()), Click(M, "Button2", lazy.window.disable_floating()) ] #################### #### GROUPS #### #################### groupNames = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X'] groups = [Group(i) for i in groupNames] for i in groups: numKey = groups.index(i) + 1 if numKey == 10: numKey = 0 keys.extend([ Key(M, str(numKey), lazy.group[i.name].toscreen()), Key(M_Sft, str(numKey), lazy.window.togroup(i.name,
widgets_screen1 = init_widgets_screen1() widgets_screen2 = init_widgets_screen2() def init_screens(): return [ Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26, opacity=0.8)), Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26, opacity=0.8)), ] screens = init_screens() # MOUSE CONFIGURATION mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Click([mod], "Button2", lazy.window.toggle_floating(), start=lazy.window.get_size()), # Click([mod], "Button3", lazy.window.bring_to_front()), Click([mod], "Button8", lazy.prev_layout()), Click([mod], "Button9", lazy.next_layout()) ] dgroups_key_binder = None dgroups_app_rules = [] main = None @hook.subscribe.startup_once def start_once(): home = os.path.expanduser('~')
format='%I:%M:%S %p', foreground=colors['S'] ) ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], 'Button1', lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], 'Button3', lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], 'Button2', lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] main = None follow_mouse_focus = False bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ {'wmclass': 'confirm'}, {'wmclass': 'dialog'}, {'wmclass': 'download'}, {'wmclass': 'error'}, {'wmclass': 'file_progress'}, {'wmclass': 'notification'},
# mod + letter of group = switch to group keys.append(Key([mod], i.name, lazy.group[i.name].toscreen())) # mod + shift + letter of group = switch to & move focused window to group keys.append(Key([mod, "shift"], i.name, lazy.window.togroup(i.name))) ##-> Mouse mouse = (Drag([mod], 'Button1', lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], 'Button3', lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], 'Button2', lazy.window.toggle_floating())) layouts = [ layout.Max(), layout.MonadTall(follow_max=True), ] screens = [ Screen(top=bar.Bar(widgets=[ widget.GroupBox(urgent_alert_method='text', **Theme.groupbox), widget.CurrentLayout(**Theme.widget), widget.WindowName(**Theme.widget), widget.Clipboard(timeout=10, **Theme.systray), widget.Systray(**Theme.systray), widget.Battery(**Theme.battery_text), widget.Pacman(execute=Commands.pacman, **Theme.pacman),
locals().update(Settings().get_settings()) widget_defaults = extension_defaults = dict(font='sans', fontsize=12, padding=3) # Drag floating layouts. mouse = [ Drag([CONSTANTS.MOD], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([CONSTANTS.MOD], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([CONSTANTS.MOD], "Button2", lazy.window.bring_to_front()) ] floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *layout.Floating.default_float_rules, Match(wm_class='confirmreset'), # gitk Match(wm_class='makebranch'), # gitk Match(wm_class='maketag'), # gitk Match(wm_class='ssh-askpass'), # ssh-askpass Match(wm_class='pavucontrol'), # ssh-askpass Match(title='branchdialog'), # gitk Match(title='pinentry'), # GPG key password entry ])
), widget.Volume(), widget.TextBox("ponderI", name="hostname"), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 30, ), ) ] # Drag floating layouts. mouse = [ Drag("M-1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag("M-3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click("M-2", lazy.window.bring_to_front()) ] # Windows Rule dgroups_app_rules = [ # Everything i want to be float, but don't want to change group Rule(Match( title=['nested', 'gscreenshot'], wm_class=[ 'Exe', 'Onboard', 'Florence', 'Plugin-container', 'Terminal', 'Gpaint', 'Kolourpaint', 'Wrapper', 'Gcr-prompter', 'Ghost', 'feh', 'Gnuplot', 'Pinta', re.compile('Gnome-keyring-prompt.*?') ], ),
Key([mod], "bracketleft", lazy.spawn("clementine --prev")), Key([mod], "bracketright", lazy.spawn("clementine --next")), # poor man's middle click Key([mod], "v", lazy.spawn("xdotool click 2")), # backlight controls Key([], "XF86KbdBrightnessUp", lazy.spawn("maclight keyboard up")), Key([], "XF86KbdBrightnessDown", lazy.spawn("maclight keyboard down")), Key([], "XF86MonBrightnessUp", lazy.spawn("maclight screen up")), Key([], "XF86MonBrightnessDown", lazy.spawn("maclight screen down")), ] host_specific_mouse = { 'hopstrocity': [ Click([mod], "Button1", lazy.spawn("xdotool click 3")), ], } mouse = host_specific_mouse.get(hostname, []) # Next, we specify group names, and use the group name list to generate an appropriate # set of bindings for group switching. groups = [] # throwaway groups for random stuff for i in ['a', 's', 'd', 'f', 'u', 'i', 'o', 'p']: groups.append(Group(i)) keys.append(Key([mod], i, lazy.group[i].toscreen())) keys.append(Key([mod, "mod1"], i, lazy.window.togroup(i)))
keys.extend( Key('M-' + str(idx), lazy.group[group.name].toscreen()) for idx, group in enumerate(groups, start=1)) keys.extend( Key('M-S-' + str(idx), lazy.window.togroup(group.name)) for idx, group in enumerate(groups, start=1)) mouse = [ Drag('M-<Button1>', lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag('M-<Button3>', lazy.window.set_size_floating(), start=lazy.window.get_size()), Click('M-<Button2>', lazy.window.bring_to_front()) ] dgroups_key_binder = None dgroups_app_rules = [] main = None follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating() auto_fullscreen = True @hook.subscribe.startup def setwallpaper(): subprocess.check_call(
widget.Battery( format='⚡ {percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W'), widget.Sep(padding=12, size_percent=80, foreground="504945"), widget.Backlight(), ] + common_bar_suffix, 24, ), ), ] # Drag floating layouts. mouse = [ Drag([MOD], "Button3", lazy.window.set_size(), start=lazy.window.get_size()), Click([MOD], "Button2", lazy.window.bring_to_front()), ] focus_on_window_activation = "never" dgroups_key_binder = None dgroups_app_rules = [] # type: List follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *layout.Floating.default_float_rules, Match(wm_class='confirmreset'), # gitk Match(wm_class='makebranch'), # gitk Match(wm_class='maketag'), # gitk
20, ), ) screens.insert(0, screen_two) # Drag floating layouts. mouse = [ Drag([mod], 'Button1', lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], 'Button3', lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], 'Button2', lazy.window.toggle_fullscreen()) ] dgroups_key_binder = None dgroups_app_rules = [] # type: List main = None follow_mouse_focus = True bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. { 'wmclass': 'confirm' }, { 'wmclass': 'dialog'