# Toggle between split and unsplit sides of stack. # Split = all windows displayed # Unsplit = 1 window displayed, like Max layout, but still with # multiple stack panes Key([mod, "shift"], "Return", lazy.layout.toggle_split(), 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"), Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"), Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), ] groups = [Group(i) for i in "asdfuiop"] for i in groups: keys.extend([ # mod1 + letter of group = switch to group Key([mod], i.name, lazy.group[i.name].toscreen(), desc="Switch to group {}".format(i.name)),
mod = "mod4" myTerm = "xterm" dmenu_command = "bemenu-run" keys = [ # Launch terminal emulator Key([mod], "Return", lazy.spawn(myTerm)), # Toggle between different layouts as defined below Key([mod], "Tab", lazy.next_layout()), # Restart WM Key([mod, "shift"], "r", lazy.restart()), # Quit WM Key([mod, "shift"], "q", lazy.shutdown()), # qtile built in launcher Key([mod], "r", lazy.spawncmd()), # launcher Key([mod], "p", lazy.spawn(dmenu_command)), # Toggle status bar Key([mod], "b", lazy.hide_show_bar("top")), # Web browser shortcut Key([mod], "w", lazy.spawn("brave")), # Toggle screensaver Key([mod], "s", lazy.spawn("i3lock -i ./wall.png")),
# Swap panes of split stack Key([mod, "shift"], "space", lazy.layout.rotate()), # Toggle between split and unsplit sides of stack. # Split = all windows displayed # Unsplit = 1 window displayed, like Max layout, but still with # multiple stack panes Key([mod, "shift"], "Return", lazy.layout.toggle_split()), Key([mod], "Return", lazy.spawn("gnome-terminal")), # Toggle between different layouts as defined below Key([mod], "Tab", lazy.next_layout()), Key([mod], "w", lazy.window.kill()), Key([mod, "control"], "r", lazy.restart()), Key([mod, "control"], "q", lazy.shutdown()), Key([mod], "r", lazy.spawncmd()), # Keybindings to log out of the GNOME session. # Key([mod, 'control'], 'l', lazy.spawn('gnome-screensaver-command -l')), # Key([mod, 'control'], 'q', lazy.spawn('gnome-session-quit --logout --no-prompt')), # Key([mod, 'shift', 'control'], 'q', lazy.spawn('gnome-session-quit --power-off')), # Starting broswer Key([mod], "b", lazy.spawn("firefox")), # Starting gnome-calculator Key([mod], "c", lazy.spawn("gnome-calculator")), ] groups = [Group(i) for i in "asdfuiop"]
Key(["mod4", "shift"], "e", lazy.spawn("rofimoji --action copy --rofi-args '-theme qmoji'"), desc="Launch emoji picker"), Key(["mod4", "shift"], "f", lazy.spawn("/home/robin/Scripts/qr-screenshot.sh"), desc="Launch emoji picker"), Key(["control", "mod1", "shift"], "F9", lazy.spawn("python /home/robin/Scripts/hud-qtile.py"), desc="Search menus"), # Restart & Quit qtile Key(["control", "mod1"], "r", lazy.restart(), desc="Restart Qtile"), Key(["control", "mod1"], "q", lazy.shutdown(), desc="Exit Qtile"), Key([mod, "shift"], "s", lazy.spawn( "scrot -s -f -e 'mv $f ~/Pictures/Screenshots/$f && xclip -selection clipboard -t image/png -i ~/Pictures/Screenshots/$f'" ), desc="Take screenshot"), Key([mod, "shift"], "q", lazy.spawn("gpick"), desc="Open colorpicker"), # Volume control Key([], "XF86AudioRaiseVolume", lazy.spawn("pactl set-sink-volume @DEFAULT_SINK@ +2%"), desc="Raise volume"), Key([], "XF86AudioLowerVolume",
# Toggle between different layouts as defined below EzKey("M-S-<Tab>", lazy.next_layout()), # Toggle between layouts EzKey("M-w", lazy.window.kill()), # Kill focused window # Put the focused window to/from fullscreen mode EzKey("M-f", lazy.window.toggle_fullscreen()), # Put the focused window to/from floating mode EzKey("M-S-f", lazy.window.toggle_floating()), # Shutdown and Restart EzKey( "M-C-r", lazy.restart(), ), # Restart Qtile EzKey( "M-C-q", lazy.shutdown(), ), # Shutdown Qtile # Media EzKey("M-S-u", lazy.spawn("amixer set Master 5%+")), # Volume up EzKey("M-S-d", lazy.spawn("amixer set Master 5%-")), # Volume down EzKey("M-C-u", lazy.spawn("amixer set Capture 5%+")), # Microphone up EzKey("M-C-d", lazy.spawn("amixer set Capture 5%-")), # Microphone down # Hotkeys EzKey("M-<Return>", lazy.spawn(terminal)), EzKey("M-d", lazy.spawn("rofi -show drun -show-icons -icon-theme Papirus")), EzKey("M-S-e", lazy.spawn(terminal + " -e ranger")), EzKey("M-e", lazy.spawn("thunar")), EzKey("M-S-s", lazy.spawn("flameshot gui")),