From 071257e4c02b6a62acf94bc0c94b810a515ee6b7 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Fri, 12 Aug 2022 17:39:02 +0200 Subject: Change location of Qtile.org file --- .config/qtile/config.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to '.config/qtile/config.py') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index abd9549..9106731 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -4,7 +4,7 @@ import subprocess from typing import List from libqtile import bar, layout, widget -from libqtile.config import Click, Drag, Group, Key, Match, Screen +from libqtile.config import Click, Drag, Group, Key, Match, Screen, KeyChord from libqtile import extension from libqtile.lazy import lazy from libqtile.utils import guess_terminal @@ -14,6 +14,8 @@ MOD = "mod4" TERMINAL = guess_terminal() +DMENU_FLAGS = '-l 16 -p run -c -i' + BAR = '#282a36' LIGHT_BAR = '#393b37' YELLOW = '#f1fa8c' @@ -70,22 +72,22 @@ keys = [ Key([MOD], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), - Key([MOD], "p", lazy.run_extension(extension.DmenuRun( - dmenu_prompt="Run", - dmenu_bottom=False, - dmenu_lines=56, - dmenu_ignorecase=True, - background=BAR, - foreground=CYAN, - ))), + KeyChord([MOD], "p", [ + Key([], "p", lazy.spawn(f"dmenu_run {DMENU_FLAGS}"), desc="Spawn dmenu run"), + Key([], "n", lazy.spawn(f"networkmanager_dmenu {DMENU_FLAGS}"), desc="Spawn dmenu for network manager"), + ]), Key([MOD, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"), Key([MOD, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"), Key([MOD, "mod1"], "f", lazy.spawn("firefox"), desc="Spawn firefox"), - Key([MOD, "mod1"], "e", lazy.spawn("emacs"), desc="Spawn emacs"), + + KeyChord([MOD], "e", [ + Key([], "e", lazy.spawn("emacsclient -c -a 'emacs'"), desc="Spawn Emacsclient"), + Key([], "d", lazy.spawn("emacsclient -c -a 'emacs' --eval '(dired nil)'"), desc='Emacsclient Dired'), + Key([], "m", lazy.spawn("emacsclient -c -a 'emacs' --eval '(emms-browser)'"), desc='Emacsclient Dired'), + ]), + Key([MOD, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"), - Key([MOD, "mod1"], "c", lazy.spawn("alacritty -e cmus"), desc="Spawn cmus (music player)"), - Key([MOD, "mod1"], "g", lazy.spawn("alacritty -e /home/jakub/.config/qtile/mdt_shell"), desc="connect to google coral device"), Key([MOD, "mod1"], "l", lazy.spawn("slock"), desc="lock desktop"), Key([MOD, "mod1"], "r", lazy.spawn("alacritty -e ranger"), desc="Spawn ranger (file manager)"), Key([MOD, "mod1"], "p", lazy.spawn("alacritty -e pulsemixer"), desc="Spawn pulsemixer"), -- cgit v1.2.3