Beispiel #1
0
 class ManagerConfig(Config):
     groups = [
         libqtile.config.Group("a"),
         libqtile.config.Group("b"),
     ]
     layouts = [libqtile.layout.max.Max()]
     keys = [
         libqtile.config.Key(["control"], "k",
                             lazy.run_extension(extension)),
     ]
     screens = [libqtile.config.Screen(bottom=libqtile.bar.Bar([], 20), )]
Beispiel #2
0
def __launcher():
    from shutil import which
    import os

    return (lazy.run_extension(
        extension.DmenuRun(
            dmenu_prompt="run> ",
            background="black",
            # background="#000000",
            selected_background="#808080",
            selected_foreground="black",
            # selected_foreground="#000000",
            dmenu_lines=10,
        )) if which("dmenu", os.X_OK) else lazy.spawncmd())
Beispiel #3
0
        lazy.layout.integrate_right().when('plasma')),
    Key([mod, alt], "Up",
        lazy.layout.integrate_up().when('plasma')),
    Key([mod, alt], "Down",
        lazy.layout.integrate_down().when('plasma')),

    # Key([alt, "control"], "Left", lazy.layout.grow_left().when('bsp')),
    # Key([alt, "control"], "Right", lazy.layout.grow_right().when('bsp')),
    # Key([alt, "control"], "Up", lazy.layout.grow_up().when('bsp')),
    # Key([alt, "control"], "Down", lazy.layout.grow_down().when('bsp')),
    Key([mod, "shift"], "Left", window_to_prev_group()),
    Key([mod, "shift"], "Right", window_to_next_group()),
    Key([mod, "control"], "Left", windows_to_prev_group()),
    Key([mod, "control"], "Right", windows_to_next_group()),
    Key([mod, "shift"], "q",
        lazy.run_extension(Zenipy(text="Logoff?", exec=lazy.shutdown()))),
    Key([mod, "control"], "q",
        lazy.run_extension(
            Zenipy(text="Shutdown?",
                   exec=lazy.spawn(['systemctl', 'poweroff'])))),
    Key([mod, "control"], "r",
        lazy.run_extension(
            Zenipy(text="Reboot?", exec=lazy.spawn(['systemctl', 'reboot'])))),
    Key([mod], "space", lazy.run_extension(RofiMenu(modi="drun"))),
    Key([alt], "Tab", lazy.run_extension(RofiMenu(modi="windowcd"))),
    Key([mod, "shift"], "r", lazy.restart()),
    Key([], 'F10', lazy.group['dropdown'].dropdown_toggle('qutebrowser')),
    Key([], 'F11', lazy.group['dropdown'].dropdown_toggle('weechat')),
    Key([], 'F12', lazy.group['dropdown'].dropdown_toggle('term')),
    Key([mod], "F1", app_or_group('WWW', '~/.local/bin/qutebrowser')),
    Key([mod], "F2",
Beispiel #4
0
        [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"),
    Key([mod], "d", lazy.run_extension(extension.DmenuRun())),
]

groups = [Group(i) for i in "123456789"]

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),
        ),
        # mod1 + shift + letter of group = switch to & move focused window to group
        Key(
Beispiel #5
0
    # 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, "shift"], "q", 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.run_extension(extension.DmenuRun(
        dmenu_prompt="Ejecuta",
        dmenu_font="Cantarell-18",
        background=back,
        foreground=color_light,
        selected_background=color,
        selected_foregorund="#ddd",
        ))),
    Key([mod], "l", lazy.layout.grow()),
    Key([mod], "h", lazy.layout.shrink()),

    Key([mod], "f", lazy.window.toggle_floating()),
]

__groups = {
    1: Group("TER"),
    2: Group("WWW", matches=[Match(wm_class=["firefox"])]),
    3: Group("DEV"),
    0: Group("MUS"),
}
Beispiel #6
0
    Key([mod, "shift"], "k", lazy.layout.shuffle_up()),
    Key([mod, "shift"], "j", lazy.layout.shuffle_down()),
    Key([mod], "i", lazy.layout.grow()),
    Key([mod], "m", lazy.layout.shrink()),
    Key([mod], "o", lazy.layout.maximize()),
    Key([mod], "n", lazy.layout.normalize()),
    Key([mod, "shift"], "space", lazy.layout.flip()),

    # my menu/run prompt.
    Key(['mod4'], 'p',
        lazy.run_extension(
            extension.DmenuRun(
                dmenu_prompt="RUN ->",
                dmenu_font="GohuFont",
                background=bg,
                foreground=fg,
                selected_background=blue,
                selected_foreground=bg,
                dmenu_ignorecase=False,
                dmenu_height=21,
            ))),

    # launch my terminal.
    Key([mod, "shift"], "Return", lazy.spawn(term)),

    # launch my editor.
    Key([mod, "control"], "e", lazy.spawn(editor)),

    # launch normiecord.
    Key([mod, "control"], "d", lazy.spawn("/usr/bin/discord --no-sandbox")),
Beispiel #7
0
    # 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"),

    # List open windows in dmenu
    Key(
        [mod],
        "u",
        lazy.run_extension(
            WindowList(item_format="{id}: {window} >>> {group}", )),
        desc=
        "Give vertical list of all open windows in dmenu. Switch to selected",
    ),
]

#----- GLOBAL COLORZ, Yep ColorZ!
colorz = (
    "#000000",  #[0] Dark Panel BG
    "#2ABB9B",  #[1] Green : Border Line >> Active Tab >> Group
    "#FFa400",  #[2] Yellow: Inactive Group Names
    "#F22613",  #[3] Red   : Active Group Names
    "#19B5FE",  #[4] Blue  : Selected Group
    "#ff0000",  #[5] light Red : Focused Window Border
    "#5aff00",  #[6] Green : Normal Window Border
)
Beispiel #8
0
    # run prompts and menu           return
    Key([mod], "space", lazy.spawn("dmenu_run"), desc="Rofi run menu"),
    Key([mod, "control"],
        "a",
        lazy.spawn("rofi -show window"),
        desc="Rofi window menu"),
    Key([mod],
        "x",
        lazy.function(lambda qtile: qtile.cmd_spawn(
            expanduser("~/.config/xmenu/xmenu.sh"))),
        desc="Run xmenu"),
    Key([mod, "control"],
        "p",
        lazy.run_extension(
            CommandSet(commands={
                "suspend": "systemctl suspend",
                "shutdown": "systemctl poweroff",
                "reboot": "systemctl reboot",
            }, )),
        desc="Power prompt"),

    # brightness
    Key([],
        "XF86MonBrightnessUp",
        lazy.spawn("xbacklight -inc +5"),
        lazy.function(lambda qtile: qtile.widgets_map["backlight"].tick()),
        desc="Increase backlight by 5%"),
    Key([mod],
        "XF86MonBrightnessUp",
        lazy.spawn("xbacklight -inc +15"),
        lazy.function(lambda qtile: qtile.widgets_map["backlight"].tick()),
        desc="Increase backlight by 15%"),
Beispiel #9
0
    # Switch between windows
    Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
    Key([mod], "l", lazy.layout.right(), desc="Move focus to right"),
    Key([mod], "j", lazy.layout.down(), desc="Move focus down"),
    Key([mod], "k", lazy.layout.up(), desc="Move focus up"),
    Key([mod],
        "space",
        lazy.layout.next(),
        desc="Move window focus to other window"),

    # App launcher
    Key([mod], 'd',
        lazy.run_extension(
            extension.DmenuRun(
                dmenu_font=font + "-11",
                dmenu_prompt=">",
                dmenu_command="dmenu_run -i",
            ))),
    Key([mod], "p", lazy.spawn("dmenu_run -i")),
    # Switch monitor focus
    Key([mod], "period", lazy.next_screen(),
        desc="Move focus to next monitor"),
    # Move windows between left/right columns or move up/down in current stack.
    # Moving out of range in Columns layout will create new column.
    Key([mod, "shift"],
        "h",
        lazy.layout.shuffle_left(),
        desc="Move window to the left"),
    Key([mod, "shift"],
        "l",
        lazy.layout.shuffle_right(),
Beispiel #10
0
    # 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], "q", lazy.window.kill(), desc="Kill focused window"),

    # Restart and Quit
    Key([mod, "control"], "r", lazy.restart(), desc="Restart Qtile"),
    Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),

    # Dmenu
    Key([mod], "d", lazy.run_extension(extension.DmenuRun(dmenu_prompt=">")),
        desc="Spawn Dmenu"),

    # Brave
    Key([mod], "b", lazy.spawn("brave"), desc="Spawn Brave"),

    # Bar
    Key([mod, "shift"], "b", lazy.hide_show_bar("top"), desc="Toggle Bar"),
]

groups = [Group(i) for i in "123456789"]

for i in groups:
    keys.extend([
        # mod1 + letter of group = switch to group
        Key([mod], i.name, lazy.group[i.name].toscreen(),
Beispiel #11
0
    # Media keys
    Key([], "XF86AudioRaiseVolume", lazy.spawn("pamixer -i 5")),
    Key([], "XF86AudioLowerVolume", lazy.spawn("pamixer -d 5")),
    Key([], "XF86AudioMute", lazy.spawn("pamixer -t")),
    Key([], "XF86AudioNext", lazy.spawn("playerctl --all-players next")),
    Key([], "XF86AudioPrev", lazy.spawn("playerctl --all-players previous")),
    Key([], "XF86AudioPlay", lazy.spawn("playerctl --all-players play-pause")),

    # Program hotkeys
    # Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
    Key([mod], "r", lazy.spawn("rofi -show run"),
        desc="Spawn a rofi app menu"),
    Key([mod, "shift"],
        "r",
        lazy.run_extension(extension.DmenuRun(dmenu_prompt="> ")),
        desc="Spawn a dmenu"),
    Key([mod], "F1", lazy.spawn([terminal, "-e", "htop"]), desc="Open htop"),
    Key([mod], "F2", lazy.spawn("librewolf"), desc="Open firefox"),
    Key([mod], "F3", lazy.spawn("pcmanfm"), desc="Open file manager"),
    Key([mod, "control"],
        "m",
        lazy.spawn("pavucontrol"),
        desc="Open volume mixer"),

    # Shutdown
    Key([mod],
        "0",
        lazy.spawn([
            'rofi', '-show', 'powermenu', '-modi', 'powermenu:rofi-power-menu',
            '-font', 'Symbols Nerd Font 14'
Beispiel #12
0
    Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
    Key([mod], "d", 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"),
    Key(
        [mod],
        'm',
        lazy.run_extension(
            extension.DmenuRun(
                dmenu_prompt=">",
                dmenu_font="Andika-8",
                background="#15181a",
                foreground="#00ff00",
                selected_background="#079822",
                selected_foreground="#fff",
                #dmenu_height=24,  # Only supported by some dmenu forks
            ))),
    Key([mod], "u", lazy.to_screen(0), desc='Keyboard focus to monitor 1'),
    Key([mod], "i", lazy.to_screen(1), desc='Keyboard focus to monitor 2'),
    Key([mod], "period", lazy.next_screen(),
        desc='Move focus to next monitor'),
    Key([mod], "comma", lazy.prev_screen(), desc='Move focus to prev monitor'),

    # Apps
    Key([mod], "b", lazy.spawn(browser)),
    Key([mod], "f", lazy.spawn(files)),
]
Beispiel #13
0
    # Toggle between different layouts as defined below
    Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
    Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
    Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"),
    Key([mod, "control"], "w", lazy.shutdown(), desc="Shutdown qtile"),
    Key([mod],
        "r",
        lazy.spawncmd(),
        desc="Spawn a command using a prompt widget"),
    Key([mod], "d",
        lazy.run_extension(
            extension.DmenuRun(
                dmenu_prompt="",
                dmenu_font="Ubuntu Bold",
                background="#282a36",
                foreground="#434758",
                selected_background="#ffb612",
                selected_foreground="#fff",
            ))),
    Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
]


# Bar Colors
def init_colors():
    return [["#282a36", "#282a36"], ["#434758", "#434758"],
            ["#282a36", "#282a36"], ["#282a36", "#282a36"],
            ["#282a36", "#282a36"]]

Beispiel #14
0
    # 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.run_extension(
            extension.DmenuRun(dmenu_font="Hack:pixelsize=18",
                               dmenu_ignorecase=True)),
        desc="Spawn a command using a prompt widget"),
    Key([mod],
        "t",
        lazy.run_extension(
            extension.WindowList(
                dmenu_font="Hack:pixelsize=18",
                dmenu_ignorecase=True,
            )),
        desc="Swap window"),
    Key([mod, "control"],
        "space",
        lazy.spawn("toggle_keyboard"),
        desc="Toggle keyboard layout"),
    Key([mod, "shift"],
Beispiel #15
0
        '/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next'
    )),

    # Spawn
    Key([mod], "Return",     lazy.spawn(terminal)),
    Key([mod], "f",          lazy.spawn(browser)),
    Key([mod], "e",          lazy.spawn(filemanager)),
    Key([mod], "r",          lazy.spawn("dmenu_run")),
    Key([mod, "shift"], "r", lazy.spawn("dmenu_sudo")),
    Key([mod], "F1",         lazy.spawn("dmenu_confedit")),
    Key([mod], "F2",         lazy.spawn("color-picker.sh")),
    Key([mod], "F3",         lazy.spawn("dmenu_unicode")),
    Key([], "Scroll_Lock",   lazy.spawn("clip2qr")),
    Key([], "Print",         lazy.spawn("screenshot")),
    Key([mod], "z",          lazy.spawn("pavucontrol")),
    Key([], 'F1',            lazy.run_extension(extension.WindowList(dmenu_font = 'JetBrains Mono'))),

    # Scratchpads
    Key([mod], "x", lazy.group['scratchpad'].dropdown_toggle('term')),
]

groups = [Group(i) for i in "123456789"]

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 = move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=False)),
    ])
Beispiel #16
0
    # 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.run_extension(
            extension.DmenuRun(command="dmenu_run", dmenu_prompt="Command:")),
        desc="Spawn a command using a prompt widget"),

    # Callers
    Key([mod], "e", lazy.spawn('nautilus'), desc="Run File manager"),
]

# groups = [Group(i) for i in "123456789"]
#
groups = [
    Group(name="1",
          label="terminal",
          matches=['terminator'],
          init=True,
          spawn=["terminator"],
          layout="column"),
Beispiel #17
0
# Function Keys

    Key([], "Print", lazy.spawn("flameshot gui")),
    Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set 5%+")),
    Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl set 5%-")),
    Key([], "XF86AudioMute", lazy.spawn("amixer -q sset Master toggle")),
    Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master playback 5%-")),
    Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer sset Master playback 5%+")),
    Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause")),
    Key([], "XF86AudioStop", lazy.spawn("playerctl stop")),
    Key([], "XF86AudioPrev", lazy.spawn("playerctl previous")),
    Key([], "XF86AudioNext", lazy.spawn("playerctl next")),

# Apps and scripts

    Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
    Key([mod], "r", lazy.run_extension(extension.DmenuRun(fontsize=11))),

    Key([mod], "F4", lazy.spawn(os.environ["HOME"] + "/Escritorio/scripts/dmenu-togglescreenlayout.sh")),
    Key([mod], "F5", lazy.spawn(os.environ["HOME"] + "/Escritorio/scripts/dmenu-audiosettings.sh")),
    Key([mod], "b", lazy.spawn("brave --new-window")),
    Key([mod], "d", lazy.spawn("dolphin")),
    Key([mod], "n", lazy.spawn("brave --new-window https://www.netflix.com/browse")),
    Key([mod], "o", lazy.spawn("okular")),
    Key([mod], "s", lazy.spawn("spotify")),
    Key([mod], "w", lazy.spawn("brave --new-window https://web.whatsapp.com/")),
    Key([mod], "x", lazy.spawn("slock")),
    Key([mod], "z", lazy.spawn(os.environ["HOME"] + "/Escritorio/scripts/dmenu-powersettings.sh")),
]
Beispiel #18
0
 Key([mod], "Tab", lazy.next_layout()),
 Key([mod, "control"], "w", lazy.window.kill()),
 Key([mod, "control"], "r", lazy.restart()),
 Key([mod, "control"], "q", lazy.shutdown()),
 Key([mod], "r", lazy.spawncmd()),
 # Key([mod], "p", lazy.spawn("dmenu_run")),
 Key(
     [mod],
     "p",
     lazy.run_extension(
         extension.DmenuRun(
             dmenu_prompt="",
             dmenu_font=None,
             fontsize=16,
             background="#0a0a0a",
             foreground="#8b3626",
             selected_background="#8b3626",
             selected_foreground="#fff",
             # dmenu_height=24, funktioniert nicht
             dmenu_ignorecase=True,
             dmenu_lines=20,
         )),
 ),
 Key([mod], "o", lazy.spawn("my-menu.sh")),
 Key([mod], "f", lazy.window.toggle_floating()),
 # Toggle "monocle" mode (fullscreen)
 Key([mod], "m", lazy.window.toggle_fullscreen()),
 Key([mod, "mod1"], "h", lazy.spawn("st -e htop")),
 Key([mod, "mod1"], "f", lazy.spawn("st -e lf")),
 # Key('M-<Up>', lazy.spawn("my-menu.sh")),
 Key([], "Print", lazy.spawn("scrot")),
Beispiel #19
0
    # Toggle Floating
    Key([mod, "shift"],
        "space",
        lazy.window.toggle_floating(),
        desc='toggle floating'),

    # Toggle Fullscreen
    Key([mod], "f", lazy.window.toggle_fullscreen()),
    # 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("st")),
    Key([mod], "d", lazy.run_extension(extension.DmenuRun())),
    Key([mod], "F1", lazy.spawn("atom")),
    Key([mod], "F2", lazy.spawn("brave")),
    Key([mod], "F3", lazy.spawn("thunar")),
    Key([mod], "F4", lazy.spawn("spotify")),
    Key([mod], "z", lazy.spawn("rofimenu")),
    Key([mod, "shift"], "d",
        lazy.spawn("rofi -modi 'window,run,ssh,drun' -show run")),
    Key([], "XF86AudioNext",
        lazy.spawn(
            "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
        )),
    Key([], "XF86AudioPrev",
        lazy.spawn(
            "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
        )),
Beispiel #20
0
    Key([], "Print", lazy.spawn('screenshot')),
    Key([mod], "Return", lazy.spawn("alacritty")),
    Key([mod], "r", lazy.spawn("alacritty -e ranger")),
    Key([mod], "v", lazy.spawn("alacritty -e nvim")),
    Key([mod], "space", lazy.spawn("rofi -show drun")),
    Key([mod], "c", lazy.spawn("clipmenu")),
    Key([mod], "p", lazy.spawn("bwmenu")),
    Key([mod], "p", lazy.spawn("bwmenu")),
    Key([mod], "o",
        lazy.spawn("rofi -show calc -modi calc -no-show-match -no-sort")),
    Key([mod], "q",
        lazy.run_extension(
            extension.CommandSet(
                commands={
                    'lock': 'slock',
                    'suspend': 'systemctl suspend',
                    'logout': 'qtile-cmd -o cmd -f shutdown',
                    'restart': 'systemctl reboot',
                    'poweroff': 'systemctl poweroff -i',
                }))),
]

groups = [
    Group(" MAIN "),
    Group(" CODE ", matches=[Match(wm_class=["jetbrains-idea"])]),
    Group(" TOOL "),
    Group(" PLAY ",
          matches=[Match(wm_class=["spotify", "pocket-casts-linux"])]),
    Group(" GAME ",
          matches=[Match(wm_class=["Steam", "FantasyGrounds.x86_64"])]),
    Group(" VIRT "),
Beispiel #21
0
    # 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"),

    # Key([mod], "p", lazy.spawn("dmenu_run"), desc="Launch dmenu"),
    Key([mod], 'p',
        lazy.run_extension(
            extension.DmenuRun(
                dmenu_prompt=">",
                dmenu_font="sans",
                dmenu_fontsize=10,
                background="#000000",
                foreground="#fff",
                selected_background="#000000",
                selected_foreground="#215578",
            ))),

    #Audio Keybindings
    Key([], "XF86AudioMute", lazy.spawn("amixer -q set Master toggle")),
    Key([], "XF86AudioLowerVolume",
        lazy.spawn("amixer -c 1 sset Master 1- unmute")),
    Key([], "XF86AudioRaiseVolume",
        lazy.spawn("amixer -c 1 sset Master 1+ unmute")),

    #Brightness Keybindings
    Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl s 1+")),
    Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl s 1-")),
Beispiel #22
0
        "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.run_extension(
            extension.DmenuRun(
                dmenu_prompt=":",
                background="#15181a",
                dmenu_font="sans-11",
                foreground="#88ADBA",
                selected_background="#617981",
                selected_foreground="#fff",
                dmenu_ignorecase=True,
            ))),

    # Volume
    Key([], "XF86AudioLowerVolume",
        lazy.spawn("pactl set-sink-volume @DEFAULT_SINK@ -5%")),
    Key([], "XF86AudioRaiseVolume",
        lazy.spawn("pactl set-sink-volume @DEFAULT_SINK@ +5%")),
    Key([], "XF86AudioMute",
        lazy.spawn("pactl set-sink-mute @DEFAULT_SINK@ toggle")),

    # Brightness
    Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set +10%")),