Example #1
0
def init_screens():
	return [
		Screen(
			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']	
Example #2
0
            widget.Spacer(length=4),
            widget.Notify(default_timeout=5),
            widget.Systray(),
            widget.Volume(
                theme_path='/usr/share/icons/elementary-xfce-dark/panel/22'),
            widget.TextBox('//'),
            widget.Clock(format='%a, %d. %Y 🕒%H:%M'),
        ],
        22,
    ), ),
]

# 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 = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating()
Example #3
0
File: config.py Project: i13e/cfg
            ],
            25,
            margin=[0, 0, 10, 0],
            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"])

Example #4
0
    ],
                       font_size,
                       background=colors['BGbase'],
                       border_color=colors['cyan']),
           bottom=bottom_bar),
    Screen(top=bar.Bar(top_widgets2,
                       font_size,
                       background=colors['BGbase'],
                       border_color=colors['cyan']),
           bottom=bottom_bar2),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         'Button1',
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod, 'shift'],
         'Button1',
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
]

dgroups_key_binder = None
dgroups_app_rules = []  # type: List
follow_mouse_focus = False
bring_front_click = True
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.
Example #5
0
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(),
  ),
]
Example #6
0
        30,
    ), ),
    Screen(top=bar.Bar(
        [
            widget.GroupBox(),
            widget.WindowName(),
            widget.Clock(format='%Y-%m-%d (%a) %p %I:%M'),
        ],
        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()
Example #7
0
]

keys.extend(
    EzKey("M-" + str(idx), lazy.group[group.name].toscreen())
    for idx, group in enumerate(groups, start=1)
)

keys.extend(
    EzKey("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