From 1fc3ef412c04e2490b6d80a48b86ccaefe2aefed Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 25 Aug 2020 18:43:57 +0200 Subject: [PATCH] [qtile] imporved python style --- qtile/config.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/qtile/config.py b/qtile/config.py index 5774ec7..59cc6c9 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -60,7 +60,7 @@ keys = [ # multiple stack panes Key([mod, "shift"], "Return", lazy.layout.toggle_split()), Key([mod], "f", lazy.window.toggle_floating()), - Key([mod], "Return", lazy.spawn("es")), # es = emacsclient + Key([mod], "Return", lazy.spawn("es")), # es = emacsclient Key([mod], "t", lazy.spawn("alacritty -e /usr/bin/fish")), Key([mod, "shift"], "t", lazy.spawn("alacritty")), Key([mod, "control"], "t", lazy.spawn("es -e '(eshell)'")), @@ -74,8 +74,10 @@ keys = [ Key([mod], "w", lazy.window.kill()), # Volume and Backlight keys - Key([], "XF86AudioLowerVolume", lazy.spawn("amixer set Master 5%- unmute")), - Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer set Master 5%+ unmute")), + Key([], "XF86AudioLowerVolume", + lazy.spawn("amixer set Master 5%- unmute")), + Key([], "XF86AudioRaiseVolume", + lazy.spawn("amixer set Master 5%+ unmute")), Key([], "XF86AudioMute", lazy.spawn("amixer set Master togglemute")), Key([], "XF86AudioMicMute", lazy.spawn("amixer set Capture togglemute")), Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -5")), @@ -94,13 +96,7 @@ groups = [Group(i) for i in "1234567890"] for i in groups: keys.extend([ - # mod1 + letter of group = switch to group Key([mod], i.name, lazy.group[i.name].toscreen()), - - # mod1 + shift + letter of group = switch to & move focused window to group - # Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=True)), - # 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)), ])