diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 36d01e6..10cf0ff 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -86,7 +86,7 @@ keys = [ Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"), Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"), Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"), - Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"), + Key([mod], "s", lazy.layout.normalize(), desc="Reset all window sizes"), # Toggle between split and unsplit sides of stack. # Split = all windows displayed # Unsplit = 1 window displayed, like Max layout, but still with @@ -98,6 +98,7 @@ keys = [ #desc="Toggle between split and unsplit sides of stack", #), Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"), + # Toggle between different layouts as defined below Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "w", lazy.window.kill(), desc="Kill focused window"), @@ -105,6 +106,8 @@ keys = [ Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), Key([mod], "r", lazy.spawn(rofi), desc="Launch rofi"), Key([mod], "z", lazy.run_extension(extension.WindowList()), desc="Launch window list"), + Key([mod, "shift"], "u", lazy.spawn(hotkeys), desc="Show Hotkeys"), + # LAUNCH chord KeyChord([mod], "e", [ Key([], "e", lazy.group['scratchpad'].dropdown_toggle('term'), desc="Launch Scratchpad Terminal"), @@ -118,10 +121,10 @@ keys = [ # FLAMESHOT chord KeyChord([], "f", [ Key([], "f", lazy.spawn('flameshot'), desc="Launch flameshot"), - Key([], "s", lazy.spawn('flameshot gui'), desc="Take screenshot"), - Key([], "a", lazy.spawn('flameshot full'), desc="Take screenshot"), - Key([], "c", lazy.spawn('flameshot full --clipboard'), desc="Take screenshot"), - Key([], "l", lazy.spawn('flameshot launcher'), desc="Take screenshot"), + Key([], "s", lazy.spawn('flameshot gui'), desc="Launch gui with option to select region"), + Key([], "a", lazy.spawn('flameshot full'), desc="Screenshot all monitors"), + Key([], "c", lazy.spawn('flameshot full --clipboard'), desc="Save capture to clipboard"), + Key([], "l", lazy.spawn('flameshot launcher'), desc="Launch launcher"), ], name='flameshot', ) @@ -157,9 +160,13 @@ keys = [ ], name="media", ), - Key([mod, "shift"], "u", lazy.spawn(hotkeys), desc="Show Hotkeys"), ] +keys.extend([ + Key([mod], "n", lazy.screen.next_group(skip_empty=True), desc="Switch to next group"), + Key([mod, "shift"], "n", lazy.screen.prev_group(skip_empty=True), desc="Switch to previous group"), + ]) + # Groups groups = [Group(i) for i in "123456"] @@ -194,6 +201,7 @@ for i in groups: ] ) + def get_hot_keys(): mod_keys = { 'mod4':'Super',