qtile: Make grave key send you to music, add a 1 workspace
This commit is contained in:
parent
0e3de8ef2c
commit
81995b24ad
@ -224,7 +224,7 @@ screens = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
groups = [Group(i) for i in "123456789"]
|
groups = [Group(i) for i in "0123456789"]
|
||||||
num_monitors = get_num_monitors()
|
num_monitors = get_num_monitors()
|
||||||
if num_monitors > 1:
|
if num_monitors > 1:
|
||||||
side_screen = Screen(
|
side_screen = Screen(
|
||||||
@ -272,26 +272,26 @@ def swap_windows(name: str) -> Callable:
|
|||||||
return _inner
|
return _inner
|
||||||
|
|
||||||
for i in groups:
|
for i in groups:
|
||||||
|
key_name = i.name if i.name != "0" else "grave"
|
||||||
keys.extend(
|
keys.extend(
|
||||||
[
|
[
|
||||||
# mod1 + letter of group = switch to group
|
# mod1 + letter of group = switch to group
|
||||||
Key(
|
Key(
|
||||||
[mod],
|
[mod],
|
||||||
i.name,
|
key_name,
|
||||||
# lazy.group[i.name].toscreen(),
|
|
||||||
lazy.function(go_to_group(i.name)),
|
lazy.function(go_to_group(i.name)),
|
||||||
desc="Switch to group {}".format(i.name),
|
desc="Switch to group {}".format(i.name),
|
||||||
),
|
),
|
||||||
# mod1 + shift + letter of group = switch to & move focused window to group
|
# mod1 + shift + letter of group = switch to & move focused window to group
|
||||||
Key(
|
Key(
|
||||||
[mod, "shift"],
|
[mod, "shift"],
|
||||||
i.name,
|
key_name,
|
||||||
lazy.window.togroup(i.name, switch_group=False),
|
lazy.window.togroup(i.name, switch_group=False),
|
||||||
desc="Switch to & move focused window to group {}".format(i.name),
|
desc="Switch to & move focused window to group {}".format(i.name),
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "control"],
|
[mod, "control"],
|
||||||
i.name,
|
key_name,
|
||||||
lazy.function(swap_windows(i.name)),
|
lazy.function(swap_windows(i.name)),
|
||||||
desc="Swap all windows with windows from N group".format(i.name),
|
desc="Swap all windows with windows from N group".format(i.name),
|
||||||
),
|
),
|
||||||
@ -371,7 +371,7 @@ floating_layout = layout.Floating(
|
|||||||
Match(title="UnityEditor.AnnotationWindow"),
|
Match(title="UnityEditor.AnnotationWindow"),
|
||||||
Match(title="Enable Android Auto-resolution?"),
|
Match(title="Enable Android Auto-resolution?"),
|
||||||
Match(wm_class="Unity", title="Select Material"),
|
Match(wm_class="Unity", title="Select Material"),
|
||||||
Match(wm_class="Unity", title="Color"),
|
# Match(wm_class="Unity", title="Select Tower Build Modal"),
|
||||||
# Match(wm_class="Unity", title="Select Material"),
|
# Match(wm_class="Unity", title="Select Material"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user