class Layout_Aesthetics(object): layout_theme = { "margin": 2, "border_width": 2, "border_focus": Colors.blue[0], "border_normal": Colors.black[0], } floating_layout = Floating( border_width=2, border_focus=Colors.blue[0], border_normal=Colors.black[0], )
class Layout_Aesthetics(object): layout_theme = { "margin": 0, "border_width": 1 if Function.screen_count() > 1 else 2, "border_focus": Colors.yellow[0], "border_normal": Colors.grey[0], "fontsize": 12 if Function.screen_count() > 1 else 22, "section_fontsize": 12 if Function.screen_count() > 1 else 22, } floating_layout = Floating( border_width=1 if Function.screen_count() > 1 else 2, border_focus=Colors.yellow[0], border_normal=Colors.black[0], )
def init_floating_layout(): # from libqtile.layout.floating import Floating return Floating(float_rules=[ {'wmclass': 'confirm'}, {'wmclass': 'dialog'}, {'wmclass': 'download'}, {'wmclass': 'error'}, {'wmclass': 'file_progress'}, {'wmclass': 'notification'}, {'wmclass': 'splash'}, {'wmclass': 'toolbar'}, {'wmclass': 'confirmreset'}, # gitk {'wmclass': 'makebranch'}, # gitk {'wmclass': 'maketag'}, # gitk {'wname': 'branchdialog'}, # gitk {'wname': 'pinentry'}, # GPG key password entry {'wmclass': 'ssh-askpass'}, # ssh-askpass {'wmclass': 'Xephyr'}, #window manager testing w/ Xephyr {'wmclass': 'Steam'}, #steam was definitely not designed to tile {'wmclass': 'oomox'}, ], **l)
def floating(self, name=None): if name is None: return Floating(**self.theme) return Floating(name=name, **self.theme)
urgent_bg=colors["secondary"], sections=[""], section_fg=colors["background"], padding_left=10, padding_y=8, margin_y=0, ), ] floating_layout = Floating( float_rules=[ *Floating.default_float_rules, Match(wm_class="pinentry-gtk-2"), Match(wm_class="Lxappearance"), Match(wm_class="Xfce4-taskmanager"), Match(wm_class="pavucontrol"), Match(title="Execute File", wm_class="Pcmanfm"), Match(title="Confirm File Replacing", wm_class="Pcmanfm"), Match(title="Steam", wm_class=""), ], **layout_theme, ) # Keybinds keys = [ # Switch focus between windows EzKey("M-<Down>", lazy.layout.down()), EzKey("M-<Up>", lazy.layout.up()), EzKey("M-<Left>", lazy.layout.left().when(layout=layout_names["monadtall"])), EzKey("M-<Right>", lazy.layout.right().when(layout=layout_names["monadtall"])), # Move windows between left/right columns or move up/down in current stack
group_names = init_group_names() groups = init_groups() for i, (name, kwargs) in enumerate(group_names, 1): keys.append(Key([mod], str(i), lazy.group[name].toscreen())) # Switch to another group keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name))) # Send current window to another group """ layout_theme = { "border_width": 1, "margin": 6, "border_focus": "e1acff", "border_normal": "1D2330" } layouts = [ MonadTall(**layout_theme), Floating(**layout_theme), ] widget_defaults = dict(font='Arial', fontsize=18, padding=3, background=colors[2]) def init_widgets_list(): widgets_list = [ GroupBox(font="DaddyTimeMono Nerd Font", fontsize=20, margin_y=3, margin_x=3, padding_y=5,
"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 follow_mouse_focus = False bring_front_click = False cursor_warp = True floating_layout = Floating(float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. *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 Match(title="pinentry"), # GPG key password entry ]) auto_fullscreen = True focus_on_window_activation = "smart" reconfigure_screens = True # If things like steam games want to auto-minimize themselves when losing # focus, should we respect this or not? auto_minimize = True wl_input_rules = None wmname = "LG3D"
] floating_layout = Floating( float_rules=[ Match(wm_type="confirm"), Match(wm_type="download"), Match(wm_type="error"), Match(wm_type="file_progress"), Match(wm_type="notification"), Match(wm_type="splash"), Match(wm_type="toolbar"), Match(wm_type="confirmreset"), Match(wm_type="makebranch"), Match(wm_type="maketag"), Match(wm_type="notification"), Match(wm_type="utility"), Match(wm_type="ssh-askpass"), Match(title="branchdialog"), Match(title="meet.google.com is sharing your screen."), Match(wm_class="Pinentry-gtk-2"), Match(wm_class="Matplotlib"), Match(wm_class="flameshot", title="Configuration"), Match(wm_class="Inkscape", title="Preferences"), Match(wm_class="mpv"), Match(wm_class="Sxiv"), Match(wm_class="Thunar"), Match(wm_class="Options Editor"), Match(title="Close Firefox"), *middle_rules, ], **layout_theme_float, )