aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kantor <michael@mikekantor.xyz>2024-01-18 06:14:12 -0500
committerMichael Kantor <michael@mikekantor.xyz>2024-01-18 06:14:12 -0500
commite3ab6a255d69df365f959a284867784d5cb4cb67 (patch)
treefee325bbc7694a1f63ad45ab2756301280578bec
parent635fd7bbcc481ed10b1265e276bdae355ca035c6 (diff)
Added scratchpad for vimpc.
-rw-r--r--README.md1
-rw-r--r--config.py15
2 files changed, 14 insertions, 2 deletions
diff --git a/README.md b/README.md
index 9ce1075..d86d376 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,7 @@ Default programs are located at the top of `config.py`.
|MODKEY + C|Opens Xterm|
|MODKEY + P|Dmenu run.|
|MODKEY + R|Scratchpad.|
+|MODKEY + CONTROL + P|Vimpc scratchpad.|
|MODKEY + I|Run an Appimage.|
|MODKEY + F|Open web browser.|
|MODKEY + CONTROL + F|Open private web browser.|
diff --git a/config.py b/config.py
index c783d75..d08d0f7 100644
--- a/config.py
+++ b/config.py
@@ -201,6 +201,14 @@ def cycle_float(qtile, direc):
# except:
# pass
+
+#def debug_key(qtile):
+# #dic = dir(DropDown("vimpc", f"{term} -e vimpc -h {home}/.mpd/socket -p 6600", opacity=1).info)
+# dic = DropDown("vimpc", f"{term} -e vimpc -h {home}/.mpd/socket -p 6600", opacity=1).info()
+#
+# with open('/tmp/qtile_debug.py', 'w') as f:
+# f.write(str(dic))
+
@hook.subscribe.setgroup
def move_pin():
global pinned_wins
@@ -405,7 +413,7 @@ keys = [
Key([mod], "r", lazy.group['scratchpad'].dropdown_toggle('term')),
- #Key([mod, "control"], "p", lazy.group['vimpc'].dropdown_toggle('vimpc')),
+ Key([mod, "control"], "p", lazy.group['vimpc'].dropdown_toggle('vimpc')),
Key([mod], "i", lazy.spawn(f"{home}/.config/qtile/cusmodules/appimg.py")),
@@ -453,6 +461,9 @@ keys = [
#Key([mod], "x", lazy.function(pinned.append, lazy.window)),
+ #Write to debug file
+ #Key([mod, "shift", "control"], "d", lazy.function(debug_key)),
+
]
group_names = [("I", {'layout': 'monadtall'}),
@@ -473,7 +484,7 @@ groups.append(ScratchPad('hidden'))
groups.append(ScratchPad("scratchpad", [ DropDown("term", term, opacity=1) ]))
-groups.append(ScratchPad("vimpc", [ DropDown("vimpc", f"{term} -e vimpc -h {home}/.mpd/socket -p 6600", opacity=1) ]))
+groups.append(ScratchPad("vimpc", [ DropDown("vimpc", f"{term} -e vimpc -h {home}/.mpd/socket -p 6600", opacity=1, height=0.55) ]))
groups.append(Group("X"))