added screen navigation

This commit is contained in:
paul-loedige
2020-11-27 00:47:38 +01:00
parent 72eb81dbc8
commit 3a4fe76831
+11 -8
View File
@@ -11,11 +11,17 @@ from groups import groups
from defines import mod, term
keys = [
# moving windows around
#moving focus aroung
Key([mod], "h", lazy.layout.left()),
Key([mod], "l", lazy.layout.right()),
Key([mod], "j", lazy.layout.down()),
Key([mod], "k", lazy.layout.up()),
Key([mod,"mod1"], "k", lazy.to_screen(0)),
Key([mod,"mod1"], "j", lazy.to_screen(1)),
Key([mod,"mod1"], "l", lazy.to_screen(1)),
Key([mod,"mod1"], "h", lazy.to_screen(2)),
# moving windows around
Key([mod, "shift"], "h", lazy.layout.swap_left()),
Key([mod, "shift"], "l", lazy.layout.swap_right()),
Key([mod, "shift"], "j", lazy.layout.shuffle_down()),
@@ -61,15 +67,12 @@ mouse = [
for i in groups:
keys.extend([
# mod1 + letter of group = switch to group
Key(["mod1","control"], i.name, lazy.group[i.name].toscreen(),
desc="Switch to group {}".format(i.name)),
# mod1 + shift + letter of group = switch to & move focused window to group
Key(["mod1","control", "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
desc="Switch to & move focused window to group {}".format(i.name)),
#Key(["mod1","control", "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
# desc="Switch to & move focused window to group {}".format(i.name)),
# Or, use below if you prefer not to switch to that group.
# # mod1 + shift + letter of group = move focused window to group
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
# desc="move focused window to group {}".format(i.name)),
Key(['mod1','control', "shift"], i.name, lazy.window.togroup(i.name),
desc="move focused window to group {}".format(i.name)),
])