Key([mod, "shift"], "Left", lazy.layout.decrease_ratio()), Key([mod, "shift"], "Return", lazy.layout.toggle_split()), Key([mod, "shift"], "Right", lazy.layout.increase_ratio()), Key([mod, "shift"], "Tab", lazy.layout.previous()), Key([mod, "shift"], "j", lazy.spawn("amixer -c 0 -q set Master 2dB-")), Key([mod, "shift"], "k", lazy.spawn("amixer -c 0 -q set Master 2dB+")), Key([mod, "shift"], "q", lazy.shutdown()), Key([mod, "shift"], "p", lazy.pause()), Key([mod, "shift"], "space", lazy.layout.rotate()), Key([mod], "Left", lazy.group.prevgroup()), Key([mod], "Right", lazy.group.nextgroup()), Key([mod], "Up", lazy.to_next_screen()), Key([mod], "Down", lazy.to_prev_screen()), Key([mod], "Tab", lazy.layout.next()), Key([mod], "f", lazy.window.toggle_floating()), Key([mod], "g", lazy.togroup()), Key([mod], "r", lazy.spawncmd()), Key([mod], "j", lazy.layout.up()), Key([mod], "k", lazy.layout.down()), Key([mod], "q", lazy.restart()), Key([mod], "l", lazy.spawn( 'alock -auth pam -bg image:center,file=' + image)), Key([mod], "space", lazy.nextlayout()), Key([mod], "Return", lazy.spawn('urxvt')), Key([mod], "w", lazy.window.kill()), Key([mod], "BackSpace", lazy.spawn( "dmenu_run -i -b -fn 'monofur:pixelsize=16:antialias=true'" " -p 'Run' -nf '#ffffff' -nb '#202020'")), Key([mod], "XF86AudioPlay", lazy.spawn(mpc + 'toggle')), Key([mod], "XF86AudioPrev", lazy.spawn(mpc + 'prev')), Key([mod], "XF86AudioNext", lazy.spawn(mpc + 'next')),
def init_const_keys(): """For layMan key-switcher (WIP): non-layout, consistent keys""" keys = [ # Switch window focus to other pane(s) of stack Key([mod], "Tab", lazy.layout.next()), Key([mod, shift], 'Tab', lazy.layout.previous()), # 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], 'w', lazy.window.toggle_minimize()), Key([mod, shift], 'w', lazy.window.toggle_minimize()), # Toggle between different layouts as defined below Key([mod], "space", lazy.next_layout()), Key([mod, shift], "space", lazy.prev_layout()), Key([mod, shift], "q", lazy.restart()), Key([mod, ctrl], "q", lazy.shutdown()), Key([mod, shift], "semicolon", lazy.spawncmd()), # Scrotter Key([mod, shift], 'a', lazy.spawn([ 'scrot', '-q', '100', '%Y%m%d.%H%M:%S_qtile.png', '-e', 'mv $f ~/Screenshots/', ])), Key([mod, shift], 'u', lazy.spawn([ 'scrot', '-ubq', '100', '%Y%m%d.%H%M:%S_window.png', '-e', 'mv $f ~/Screenshots', ])), # TODO: grab mouse for this Key([mod, shift], 's', lazy.spawn([ 'scrot', '-sq', '100', '%Y%m%d.%H%M:%S_selection.png', '-e', 'mv $f ~/Screenshots', ])), # Window Ops Key([mod], "x", lazy.window.kill()), Key([mod], "t", lazy.window.toggle_floating()), Key([mod, shift], "e", lazy.window.toggle_fullscreen()), Key([mod], "semicolon", lazy.spawn(TERMUX)), #movement Key([mod], "g", lazy.togroup()), Key([mod], "slash", lazy.findwindow()), # Sound and Mpd Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer sset Master 5%+")), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master 5%-")), Key([], "XF86AudioMute", lazy.spawn("amixer sset Master toggle")), Key([], "XF86AudioNext", # lazy.function(lambda q: fipc_jango("next"))), lazy.spawn("mpc next")), Key([], "XF86AudioPrev", # lazy.function(lambda q: fipc_jango("prev"))), lazy.spawn("mpc prev")), # No mute key @notebook Key([shift], "XF86AudioMute"), # Key([], "F12", lazy.function(SwapGroup('h4x'))), #qtile-examples/roger/ # Key(['shift'], "F12", lazy.function(to_urgent)), #qtile-examples/roger/ ] keys.extend(init_groups_keys()) return keys
Key([mod, "mod1"], "h", lazy.to_screen(0)), Key([mod, "mod1"], "l", lazy.to_screen(1)), Key([mod, "shift"], "l", lazy.layout.swap_left()), # serge Key([mod], "h", lazy.layout.left()), Key([mod], "l", lazy.layout.right()), Key([mod], "s", lazy.layout.toggle_split()), Key([mod, "shift", "control"], "l", lazy.layout.grow_right()), Key([mod, "shift"], "l", lazy.layout.shuffle_right()), Key([mod, "shift", "control"], "h", lazy.layout.grow_left()), Key([mod, "shift"], "h", lazy.layout.shuffle_left()), Key([mod], "s", lazy.layout.toggle_split()), # interact with prompts Key([mod], "r", lazy.spawncmd()), Key([mod], "g", lazy.togroup()), # start specific apps Key([mod], "n", lazy.function(app_or_group("www", "firefox"))), Key([mod], "m", lazy.function(app_or_group("music", "clementine"))), Key([mod, "shift"], "x", lazy.window.kill()), Key([mod, "control"], "Return", lazy.spawn("tabbed vimprobable -e")), Key([mod], "Return", lazy.spawn("st")), # Change the volume if our keyboard has keys Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer -c %d -q set Master 2dB+" % sound_card)), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer -c %d -q set Master 2dB-" % sound_card)), Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse set Master toggle")),
Key([mod], "w", lazy.window.kill()), Key([mod], "F2", lazy.spawn( "dmenu_run -p run -nb '#202020' -nf '#ffffff' -fa 'Anonymous Pro-10'")), Key( [mod, "shift"], "k", lazy.spawn("amixer -c 0 -q set Master 2dB+") ), Key( [mod, "shift"], "j", lazy.spawn("amixer -c 0 -q set Master 2dB-") ), Key( [mod], "g", lazy.togroup() ), Key( [mod], "Left", lazy.group.prevgroup(), ), Key( [mod], "Right", lazy.group.nextgroup(), ), ] mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front())
def init_const_keys(): """For layMan key-switcher (WIP): non-layout, consistent keys""" keys = [ # Switch window focus to other pane(s) of stack Key([mod], "Tab", lazy.layout.next()), Key([mod, shift], 'Tab', lazy.layout.previous()), # 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], 'w', lazy.window.toggle_minimize()), Key([mod, shift], 'w', lazy.window.toggle_minimize()), # Toggle between different layouts as defined below Key([mod], "space", lazy.next_layout()), Key([mod, shift], "space", lazy.prev_layout()), Key([mod, shift], "q", lazy.restart()), Key([mod, ctrl], "q", lazy.shutdown()), Key([mod, shift], "semicolon", lazy.spawncmd()), Key([mod], "p", lazy.spawn('rofi -show drun')), # Scrotter Key([mod, shift], 'a', lazy.spawn([ 'scrot', '-q', '100', '%Y%m%d.%H%M:%S_qtile.png', '-e', 'mv $f ~/Screenshots/', ])), Key([mod, shift], 'u', lazy.spawn([ 'scrot', '-ubq', '100', '%Y%m%d.%H%M:%S_window.png', '-e', 'mv $f ~/Screenshots', ])), # TODO: grab mouse for this Key([mod, shift], 's', lazy.spawn([ 'scrot', '-sq', '100', '%Y%m%d.%H%M:%S_selection.png', '-e', 'mv $f ~/Screenshots', ])), # Window Ops Key([mod], "x", lazy.window.kill()), Key([mod], "t", lazy.window.toggle_floating()), Key([mod, shift], "e", lazy.window.toggle_fullscreen()), Key([mod], "semicolon", lazy.spawn(TERMUX)), #movement Key([mod], "g", lazy.togroup()), Key([mod], "slash", lazy.findwindow()), # Sound and Mpd Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer sset Master 5%+")), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master 5%-")), Key([], "XF86AudioMute", lazy.spawn("amixer sset Master toggle")), Key( [], "XF86AudioNext", # lazy.function(lambda q: fipc_jango("next"))), lazy.spawn("mpc next")), Key( [], "XF86AudioPrev", # lazy.function(lambda q: fipc_jango("prev"))), lazy.spawn("mpc prev")), # No mute key @notebook Key([shift], "XF86AudioMute"), # Key([], "F12", lazy.function(SwapGroup('h4x'))), #qtile-examples/roger/ # Key(['shift'], "F12", lazy.function(to_urgent)), #qtile-examples/roger/ ] keys.extend(init_groups_keys()) return keys