summaryrefslogtreecommitdiffstats
path: root/.config/qtile/config.py
diff options
context:
space:
mode:
Diffstat (limited to '.config/qtile/config.py')
-rw-r--r--.config/qtile/config.py26
1 files changed, 14 insertions, 12 deletions
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
4from typing import List 4from typing import List
5 5
6from libqtile import bar, layout, widget 6from libqtile import bar, layout, widget
7from libqtile.config import Click, Drag, Group, Key, Match, Screen 7from libqtile.config import Click, Drag, Group, Key, Match, Screen, KeyChord
8from libqtile import extension 8from libqtile import extension
9from libqtile.lazy import lazy 9from libqtile.lazy import lazy
10from libqtile.utils import guess_terminal 10from libqtile.utils import guess_terminal
@@ -14,6 +14,8 @@ MOD = "mod4"
14 14
15TERMINAL = guess_terminal() 15TERMINAL = guess_terminal()
16 16
17DMENU_FLAGS = '-l 16 -p run -c -i'
18
17BAR = '#282a36' 19BAR = '#282a36'
18LIGHT_BAR = '#393b37' 20LIGHT_BAR = '#393b37'
19YELLOW = '#f1fa8c' 21YELLOW = '#f1fa8c'
@@ -70,22 +72,22 @@ keys = [
70 Key([MOD], "r", lazy.spawncmd(), 72 Key([MOD], "r", lazy.spawncmd(),
71 desc="Spawn a command using a prompt widget"), 73 desc="Spawn a command using a prompt widget"),
72 74
73 Key([MOD], "p", lazy.run_extension(extension.DmenuRun( 75 KeyChord([MOD], "p", [
74 dmenu_prompt="Run", 76 Key([], "p", lazy.spawn(f"dmenu_run {DMENU_FLAGS}"), desc="Spawn dmenu run"),
75 dmenu_bottom=False, 77 Key([], "n", lazy.spawn(f"networkmanager_dmenu {DMENU_FLAGS}"), desc="Spawn dmenu for network manager"),
76 dmenu_lines=56, 78 ]),
77 dmenu_ignorecase=True,
78 background=BAR,
79 foreground=CYAN,
80 ))),
81 79
82 Key([MOD, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"), 80 Key([MOD, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"),
83 Key([MOD, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"), 81 Key([MOD, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"),
84 Key([MOD, "mod1"], "f", lazy.spawn("firefox"), desc="Spawn firefox"), 82 Key([MOD, "mod1"], "f", lazy.spawn("firefox"), desc="Spawn firefox"),
85 Key([MOD, "mod1"], "e", lazy.spawn("emacs"), desc="Spawn emacs"), 83
84 KeyChord([MOD], "e", [
85 Key([], "e", lazy.spawn("emacsclient -c -a 'emacs'"), desc="Spawn Emacsclient"),
86 Key([], "d", lazy.spawn("emacsclient -c -a 'emacs' --eval '(dired nil)'"), desc='Emacsclient Dired'),
87 Key([], "m", lazy.spawn("emacsclient -c -a 'emacs' --eval '(emms-browser)'"), desc='Emacsclient Dired'),
88 ]),
89
86 Key([MOD, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"), 90 Key([MOD, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"),
87 Key([MOD, "mod1"], "c", lazy.spawn("alacritty -e cmus"), desc="Spawn cmus (music player)"),
88 Key([MOD, "mod1"], "g", lazy.spawn("alacritty -e /home/jakub/.config/qtile/mdt_shell"), desc="connect to google coral device"),
89 Key([MOD, "mod1"], "l", lazy.spawn("slock"), desc="lock desktop"), 91 Key([MOD, "mod1"], "l", lazy.spawn("slock"), desc="lock desktop"),
90 Key([MOD, "mod1"], "r", lazy.spawn("alacritty -e ranger"), desc="Spawn ranger (file manager)"), 92 Key([MOD, "mod1"], "r", lazy.spawn("alacritty -e ranger"), desc="Spawn ranger (file manager)"),
91 Key([MOD, "mod1"], "p", lazy.spawn("alacritty -e pulsemixer"), desc="Spawn pulsemixer"), 93 Key([MOD, "mod1"], "p", lazy.spawn("alacritty -e pulsemixer"), desc="Spawn pulsemixer"),