spmenu/libs/arg.h
Jacob 3f456f3a37 Feature: Add the ability to take "screenshots" of spmenu.
It doesn't actually capture your screen, but rather saves the Cairo
surface to an image. The path to the image and some other options
can also be configured in the config file.

By default, Print Screen can be pressed in Normal mode with no modifier
to take a screenshot. The default location is the user's home directory,
and the file has a date attached to it. Of course, this can be changed
as well.
2023-06-30 02:44:29 +02:00

47 lines
1.4 KiB
C

/* See LICENSE file for copyright and license details. */
typedef union {
int i; // integer
unsigned int ui; // unsigned int
float f; // float
const void *v; // void
const char *c; // char
} Arg;
// declare keybind functions
static void moveup(Arg *arg);
static void movedown(Arg *arg);
static void moveleft(Arg *arg);
static void moveright(Arg *arg);
static void moveend(Arg *arg);
static void movestart(Arg *arg);
static void movenext(Arg *arg);
static void moveprev(Arg *arg);
static void moveitem(Arg *arg);
static void paste(Arg *arg);
static void restoresel(Arg *arg);
static void clear(Arg *arg);
static void clearins(Arg *arg);
static void viewhist(Arg *arg);
static void moveword(Arg *arg);
static void deleteword(Arg *arg);
static void movecursor(Arg *arg);
static void navhistory(Arg *arg);
static void backspace(Arg *arg);
static void markitem(Arg *arg);
static void selectitem(Arg *arg);
static void quit(Arg *arg);
static void complete(Arg *arg);
static void setimgsize(Arg *arg);
static void toggleimg(Arg *arg);
static void defaultimg(Arg *arg);
static void flipimg(Arg *arg);
static void setimgpos(Arg *arg);
static void setimggaps(Arg *arg);
static void setlines(Arg *arg);
static void setcolumns(Arg *arg);
static void spawn(Arg *arg);
static void togglehighlight(Arg *arg);
static void setprofile(Arg *arg);
static void switchmode(Arg *arg);
static void screenshot(Arg *arg);