diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2022-08-12 17:39:02 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2022-08-12 17:39:02 +0200 |
commit | 071257e4c02b6a62acf94bc0c94b810a515ee6b7 (patch) | |
tree | 35dfc414d9cd824010bf66eb0aaca7cfc5109f5e /.config/qtile/config.py | |
parent | ce6293c0cc6a9be96acc5fc49c5ba52241053f14 (diff) | |
download | dotfiles-071257e4c02b6a62acf94bc0c94b810a515ee6b7.tar.gz dotfiles-071257e4c02b6a62acf94bc0c94b810a515ee6b7.zip |
Change location of Qtile.org file
Diffstat (limited to '.config/qtile/config.py')
-rw-r--r-- | .config/qtile/config.py | 26 |
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 | |||
4 | from typing import List | 4 | from typing import List |
5 | 5 | ||
6 | from libqtile import bar, layout, widget | 6 | from libqtile import bar, layout, widget |
7 | from libqtile.config import Click, Drag, Group, Key, Match, Screen | 7 | from libqtile.config import Click, Drag, Group, Key, Match, Screen, KeyChord |
8 | from libqtile import extension | 8 | from libqtile import extension |
9 | from libqtile.lazy import lazy | 9 | from libqtile.lazy import lazy |
10 | from libqtile.utils import guess_terminal | 10 | from libqtile.utils import guess_terminal |
@@ -14,6 +14,8 @@ MOD = "mod4" | |||
14 | 14 | ||
15 | TERMINAL = guess_terminal() | 15 | TERMINAL = guess_terminal() |
16 | 16 | ||
17 | DMENU_FLAGS = '-l 16 -p run -c -i' | ||
18 | |||
17 | BAR = '#282a36' | 19 | BAR = '#282a36' |
18 | LIGHT_BAR = '#393b37' | 20 | LIGHT_BAR = '#393b37' |
19 | YELLOW = '#f1fa8c' | 21 | YELLOW = '#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"), |