Add toggleimgtype
This commit is contained in:
parent
288963dad1
commit
d3798b90ff
|
@ -1123,6 +1123,8 @@ bind:
|
|||
- Toggle fuzzy matching
|
||||
- `toggleimg`
|
||||
- Toggle images
|
||||
- `toggleimgtype`
|
||||
- Toggle image type
|
||||
- `flipimg`
|
||||
- Flip image, 0 means vertically, 1 means horizontally
|
||||
- `setimgpos`
|
||||
|
|
|
@ -537,6 +537,12 @@ void toggleimg(Arg *arg) {
|
|||
#endif
|
||||
}
|
||||
|
||||
void toggleimgtype(Arg *arg) {
|
||||
#if IMAGE
|
||||
imagetype = !imagetype;
|
||||
#endif
|
||||
}
|
||||
|
||||
void defaultimg(Arg *arg) {
|
||||
#if IMAGE
|
||||
|
||||
|
|
|
@ -74,6 +74,7 @@ static void togglehighlight(Arg *arg);
|
|||
static void toggleregex(Arg *arg);
|
||||
static void togglefuzzy(Arg *arg);
|
||||
static void toggleimg(Arg *arg);
|
||||
static void toggleimgtype(Arg *arg);
|
||||
|
||||
/* hover */
|
||||
static void selecthover(Arg *arg);
|
||||
|
|
|
@ -391,6 +391,7 @@ static FuncList fl[] = {
|
|||
{ "toggleregex", toggleregex },
|
||||
{ "togglefuzzy", togglefuzzy },
|
||||
{ "toggleimg", toggleimg },
|
||||
{ "toggleimgtype", toggleimgtype },
|
||||
{ "setprofile", setprofile },
|
||||
{ "setlineheight", setlineheight },
|
||||
{ "switchmode", switchmode },
|
||||
|
|
|
@ -40,11 +40,11 @@ static int powerlinecount = 1; /* Enable powerline for the match co
|
|||
static int powerlinemode = 1; /* Enable powerline for the mode indicator */
|
||||
static int powerlinecaps = 1; /* Enable powerline for the caps lock indicator */
|
||||
static int powerlineitems = 1; /* Enable powerline for the items */
|
||||
static int promptpwlstyle = 2; /* Prompt powerline style (0: >, 1: \, 2: )) */
|
||||
static int matchcountpwlstyle = 2; /* Match count powerline style (0: <, 1: /, 2: () */
|
||||
static int modepwlstyle = 2; /* Mode indicator powerline style (0: <, 1: /, 2: () */
|
||||
static int capspwlstyle = 2; /* Caps lock indicator powerline style (0: <, 1: /, 2: () */
|
||||
static int itempwlstyle = 2; /* Item powerline style (0: <>, 1: /\, 2: ()) */
|
||||
static int promptpwlstyle = 2; /* Prompt powerline style (0: Arrow, 1: Slash, 2: Rounded) */
|
||||
static int matchcountpwlstyle = 2; /* Match count powerline style (0: Arrow, 1: Slash, 2: Rounded) */
|
||||
static int modepwlstyle = 2; /* Mode indicator powerline style (0: Arrow, 1: Slash, 2: Rounded) */
|
||||
static int capspwlstyle = 2; /* Caps lock indicator powerline style (0: Arrow, 1: Slash, 2: Rounded) */
|
||||
static int itempwlstyle = 2; /* Item powerline style (0: Arrow, 1: Slash, 2: Rounded)) */
|
||||
|
||||
/* Window properties */
|
||||
static int dockproperty = 1; /* Set _NET_WM_WINDOW_TYPE_DOCK */
|
||||
|
|
Loading…
Reference in a new issue