# 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, "control"], "Return", lazy.window.toggle_floating()), Key([mod], "Return", lazy.spawn(term)), # 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], "Scroll_Lock", lazy.spawn("i3lock -c 000000")), Key([mod], "slash", lazy.switchgroup()), # Key([mod], "r", lazy.spawncmd()), Key([mod], "r", lazy.spawn("rofi -show run")), # Pulse Audio controls Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse sset Master toggle")), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer -D pulse sset Master 5%-")), Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer -D pulse sset Master 5%+")), Key([], "XF86MonBrightnessUp", lazy.spawn('xbacklight -inc 10')), Key([], "XF86MonBrightnessDown", lazy.spawn('xbacklight -dec 10')), # keypad start apps Key([mod], "KP_Insert", lazy.spawncmd(), desc="cmd"), # Keypad 0
Key([mod, "shift"], "Return",lazy.layout.toggle_split()), # change the layout Key([mod], "j", lazy.nextlayout()), # quit the program "qtile way" Key([mod], "x", lazy.window.kill()), # move to the adjacent screen Key([mod], "Left", lazy.group.prevgroup()), Key([mod], "Right", lazy.group.nextgroup()), # interact with prompts Key([mod], "r", lazy.spawncmd()), Key([mod], "g", lazy.switchgroup()), # start specific apps Key([mod], "e", lazy.spawn("python ~/.config/qtile/checkmail.py")), Key([mod], "Return", lazy.spawn("xterm")), Key([mod], "1", lazy.spawn("uzbl-tabbed")), Key([mod], "2", lazy.spawn("firefox")), Key(["control", "mod1"],"t", lazy.spawn("gnome-terminal")), Key([mod], "3", lazy.spawn("vlc")), Key([mod], "4", lazy.spawn("evince")), Key([mod], "5", lazy.spawn("idle-python2.7")), Key([mod], "6", lazy.spawn("emacs")), Key([mod], "7", lazy.spawn("wine /mnt/windows/Program Files/utorrent/utorrent.exe")), Key([mod], "8", lazy.spawn("radiotray")),
lazy.layout.decrease_ratio().when('tile'), lazy.layout.normalize().when('xmonad-tall')), Key([mod, 'control'], 'j', lazy.layout.grow().when('xmonad-tall'), lazy.layout.increase_nmaster().when('tile')), Key([mod, 'control'], 'k', lazy.layout.shrink().when('xmonad-tall'), lazy.layout.decrease_nmaster().when('tile')), Key([mod], 'Left', lazy.to_screen(0)), Key([mod], 'Right', lazy.to_screen(1)), Key([alt], 'Tab', lazy.nextlayout()), # interact with prompts Key([mod], 'r', lazy.spawncmd()), Key([mod], 'g', lazy.switchgroup()), Key([mod], 's', lazy.spawncmd(prompt='Slack Team', command='google-chrome --app=https://%s.slack.com/', complete=None)), # Commands: Application Launchers Key([mod], 'space', lazy.spawn(Commands.dmenu)), Key([mod], 'n', lazy.spawn(Commands.browser)), Key([mod], 'e', lazy.spawn(Commands.file_manager)), Key([mod], 'Return', lazy.spawn(Commands.terminal)), Key([], 'Print', lazy.spawn(Commands.screenshot)), # Commands: Volume Controls Key([], 'XF86AudioRaiseVolume', lazy.spawn(Commands.volume_up)),
Key(["shift", "mod1"], "q", lazy.shutdown()), Key(["mod3"], "k", lazy.layout.down()), Key(["mod3"], "j", lazy.layout.up()), Key(["mod3"], "h", lazy.layout.previous()), Key(["mod3"], "l", lazy.layout.previous()), Key(["mod3", "shift"], "space", lazy.layout.rotate()), Key(["mod3", "shift"], "Return",lazy.layout.toggle_split()), Key(["mod1"], "Tab", lazy.nextlayout()), Key(["mod3", "mod1"], "h", lazy.to_screen(0)), Key(["mod3", "mod1"], "l", lazy.to_screen(1)), Key(["mod3"], "x", lazy.window.kill()), # interact with prompts Key(["mod3"], "r", lazy.spawncmd()), Key(["mod3"], "g", lazy.switchgroup()), # start specific apps Key(["mod3"], "n", lazy.spawn("firefox")), Key(["mod3"], "m", lazy.spawn("clementine")), Key(["mod3"], "Return", lazy.spawn("xterm")), # Change the volume if our keyboard has keys Key( [], "XF86AudioRaiseVolume", lazy.spawn("amixer -c 0 -q set Master 2dB+") ), Key( [], "XF86AudioLowerVolume", lazy.spawn("amixer -c 0 -q set Master 2dB-") ),
lazy.spawn( "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify " "/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous")), # == backlight # yaourt -S light-git Key([], "XF86MonBrightnessUp", lazy.spawn("light -A 5")), Key([], "XF86MonBrightnessDown", lazy.spawn("light -U 5")), # == toggle screens Key([mod], "twosuperior", lazy.next_screen()), Key([mod, "shift"], "twosuperior", lazy.prev_screen()), Key([mod], "g", lazy.screen.togglegroup()), Key([mod, "shift"], "g", lazy.switchgroup()), # == keys for groups Key([mod], "u", lazy.next_urgent()), Key([mod], "Left", lazy.screen.prev_group(skip_managed=True)), Key([mod], "Right", lazy.screen.next_group(skip_managed=True)), # keys for FR keymap, strange that "1", "2", does not work.... # TODO: something to detect keymap and attrib the good keys automatically ? # "1" Key([mod], "ampersand", lazy.group["main"].toscreen()), Key([mod, "shift"], "ampersand", lazy.window.togroup("main")), # "2" Key([mod], "eacute", lazy.group["main2"].toscreen()), Key([mod, "shift"], "eacute", lazy.window.togroup("main2")), # "3"
Key([alt, shift], "Up", lazy.layout.shuffle_down()), Key([alt, shift], "Down", lazy.layout.shuffle_up()), # Split and flip windows on the screen Key([alt], "space", lazy.layout.toggle_split()), Key([alt, shift], "space", lazy.layout.rotate()), # Dmenu quick commands Key([alt, shift], "Return", lazy.spawncmd()), Key([alt], "g", lazy.switchgroup()), # Spawn app shortucts Key([alt], "Return", lazy.spawn("gnome-terminal")), Key([alt], "BackSpace", lazy.spawn("urxvt256c")), Key([alt, shift], "d", lazy.spawn("dwb")), Key([alt, shift], "f", lazy.spawn("firefox")), Key([alt, shift], "g", lazy.spawn("google-chrome-stable")), Key([alt, shift], "p", lazy.spawn("gnome-control-center")), Key([alt, shift], "s",