From e3ab6a255d69df365f959a284867784d5cb4cb67 Mon Sep 17 00:00:00 2001 From: Michael Kantor Date: Thu, 18 Jan 2024 06:14:12 -0500 Subject: Added scratchpad for vimpc. --- config.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'config.py') 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")) -- cgit v1.2.1