From 7762c3b4f10ec8abe5b99f30ee07fcb0e126e9b0 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 23 Jun 2022 01:01:02 +0200 Subject: make changes in qtile conig --- .config/qtile/config.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to '.config/qtile') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index f357067..d93bf88 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -100,15 +100,13 @@ groups_names = [ ] groups = [Group(i) for i in groups_names] -abc = 0 -for i in groups: - abc += 1 +for i, group in enumerate(groups): keys.extend([ - Key([mod], str(abc), lazy.group[i.name].toscreen(), - desc="Switch to group {}".format(i.name)), + Key([mod], str(i), lazy.group[group.name].toscreen(), + desc="Switch to group {}".format(group.name)), - Key([mod, "shift"], str(abc), lazy.window.togroup(i.name, switch_group=True), - desc="Switch to & move focused window to group {}".format(i.name)), + Key([mod, "shift"], str(i), lazy.window.togroup(group.name, switch_group=True), + desc="Switch to & move focused window to group {}".format(group.name)), ]) -- cgit v1.2.3