On Sun, Mar 29, 2020 at 08:37:35AM -0700, J A wrote:
> Hello devs,
>
> So I would like to use imagemagic to do a command line screen capture.
> What's really nice with this method is that I can quickly name the output
> file. This will go a long way for organizational purposes when I have too
> many screenshots to look at later and then decide on a name.
>
> I was wondering if there was a way to wrap my "import" command in qtile so
> that when I hit a hot key that it will allow for me to input some text that
> will then be used as the title of the file.
# untested
def start_import_prompt(qtile):
def run_import(fname):
subprocess.call(["import", ..., fname])
p = self.widgets_map["import_prompt"]
p.start_input("catpure", run_import, complete="file")
Key(mod, "c", lazy.function(start_import_prompt))
screens = Screen(top=bar.Bar([widget.Prompt(name="import_prompt")]))
Or similar. You could also re-use the prompt widget that you use for
spawning commands if you have one.
Tycho
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/20200329173621.GC11418%40cisco.