2023-04-04 21:39:38 +02:00
|
|
|
/* spmenu default configuration file
|
|
|
|
*
|
|
|
|
* Copy to ~/.config/spmenu/spmenu.conf to use.
|
|
|
|
* Note that you can @include other config files if you want
|
|
|
|
*
|
2023-04-29 15:30:51 +02:00
|
|
|
* Arguments will always override options in this configuration file.
|
|
|
|
*
|
2023-04-04 21:39:38 +02:00
|
|
|
* Example: @include "config.conf"
|
|
|
|
*/
|
2023-04-29 15:30:51 +02:00
|
|
|
spmenu = {
|
|
|
|
/* General window options */
|
|
|
|
window = ( { position = 2; // Menu position (0: Bottom, 1: Top, 2: Center)
|
|
|
|
border = 0; // Window border size (px)
|
|
|
|
margin-vertical = 0; // Inner vertical padding (px)
|
|
|
|
margin-horizontal = 0; // Inner horizontal padding (px)
|
|
|
|
padding-vertical = 0; // Outer vertical padding (px)
|
|
|
|
padding-horizontal = 0; // Outer horizontal padding (px)
|
|
|
|
x = 0; // X position offset (px)
|
|
|
|
y = 0; // Y position offset (px)
|
|
|
|
width = 0; // Width when X and/or Y offset is set, 0 is the default (px)
|
|
|
|
monitor = -1; // Monitor to spawn spmenu on, (-1, 0, 1, ...)
|
|
|
|
managed = 0; // Allow your window manager to manage spmenu as a window (0/1)
|
|
|
|
alpha = 1; // Enable alpha/transparency (0/1)
|
2023-04-04 17:18:16 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* X11 properties */
|
|
|
|
properties = ( { class = "spmenu"; // _WM_CLASS property, for compatibility you may want to set it to 'dmenu'. (text)
|
|
|
|
dock = 1; // Set _NET_WM_WINDOW_TYPE_DOCK (0/1)
|
2023-04-04 17:18:16 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Text */
|
|
|
|
text = ( { font = "Noto Sans Mono 8"; // Font to use for all text (text)
|
2023-04-30 23:45:58 +02:00
|
|
|
padding = 0; // Horizontal padding around the text globally (px)
|
|
|
|
normitempadding = 0; // Horizontal padding around the normal item text (px)
|
|
|
|
selitempadding = 0; // Horizontal padding around the selected item text (px)
|
|
|
|
priitempadding = 0; // Horizontal padding around the high priority item text (px)
|
2023-04-29 15:30:51 +02:00
|
|
|
leftarrow = "<"; // Left arrow text (text)
|
|
|
|
rightarrow = ">"; // Right arrow text (text)
|
|
|
|
password = "*"; // Password character (text)
|
|
|
|
prompt = ""; // Prompt text (text)
|
|
|
|
input = ""; // Input text (text)
|
|
|
|
capslockon = "Caps Lock"; // Caps Lock On text (text)
|
|
|
|
capslockoff = ""; // Caps Lock Off text (text)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Colors */
|
|
|
|
color = ( { itemnormfg = "#bbbbbb"; // Normal item foreground color (#RRGGBB)
|
|
|
|
itemnormbg = "#222222"; // Normal item background color (#RRGGBB)
|
2023-05-13 16:07:29 +02:00
|
|
|
itemnormfg2 = "#bbbbbb"; // Normal next item foreground color (#RRGGBB)
|
2023-05-16 21:36:45 +02:00
|
|
|
itemnormbg2 = "#222222"; // Normal next item background color (#RRGGBB)
|
2023-04-29 15:30:51 +02:00
|
|
|
itemselfg = "#eeeeee"; // Selected item foreground color (#RRGGBB)
|
|
|
|
itemselbg = "#35638A"; // Selected item background color (#RRGGBB)
|
2023-05-18 10:23:45 +02:00
|
|
|
itemmarkedfg = "#eeeeee"; // Marked item foreground color (#RRGGBB)
|
|
|
|
itemmarkedbg = "#35638A"; // Marked item background color (#RRGGBB)
|
2023-04-29 15:30:51 +02:00
|
|
|
itemnormprifg = "#bbbbbb"; // Normal priority item foreground color (#RRGGBB)
|
|
|
|
itemnormpribg = "#222222"; // Normal priority item background color (#RRGGBB)
|
|
|
|
itemselprifg = "#eeeeee"; // Selected priority item foreground color (#RRGGBB)
|
|
|
|
itemselpribg = "#35638A"; // Selected priority item background color (#RRGGBB)
|
|
|
|
inputfg = "#eeeeee"; // Input foreground color (#RRGGBB)
|
|
|
|
inputbg = "#222222"; // Input background color (#RRGGBB)
|
|
|
|
menu = "#222222"; // Menu color (#RRGGBB)
|
|
|
|
promptfg = "#eeeeee"; // Prompt foreground color (#RRGGBB)
|
|
|
|
promptbg = "#35526b"; // Prompt background color (#RRGGBB)
|
|
|
|
larrowfg = "#bbbbbb"; // Left arrow foreground color (#RRGGBB)
|
|
|
|
larrowbg = "#222222"; // Left arrow background color (#RRGGBB)
|
|
|
|
rarrowfg = "#bbbbbb"; // Right arrow foreground color (#RRGGBB)
|
|
|
|
rarrowbg = "#222222"; // Right arrow background color (#RRGGBB)
|
|
|
|
hlnormfg = "#ffffff"; // Normal highlight foreground color (#RRGGBB)
|
|
|
|
hlnormbg = "#000000"; // Normal highlight background color (#RRGGBB)
|
|
|
|
hlselfg = "#ffffff"; // Selected highlight foreground color (#RRGGBB)
|
|
|
|
hlselbg = "#000000"; // Selected highlight background color (#RRGGBB)
|
|
|
|
numfg = "#ffffff"; // Match count foreground color (#RRGGBB)
|
|
|
|
numbg = "#2d3856"; // Match count background color (#RRGGBB)
|
|
|
|
modefg = "#ffffff"; // Mode indicator foreground color (#RRGGBB)
|
|
|
|
modebg = "#35638A"; // Mode indicator background color (#RRGGBB)
|
|
|
|
capsfg = "#ffffff"; // Caps lock indicator foreground color (#RRGGBB)
|
|
|
|
capsbg = "#45638A"; // Caps lock indicator background color (#RRGGBB)
|
|
|
|
border = "#35638A"; // Border color (#RRGGBB)
|
|
|
|
caretfg = "#ffffff"; // Caret (cursor) foreground color (#RRGGBB)
|
|
|
|
caretbg = "#222222"; // Caret (cursor) background color (#RRGGBB)
|
|
|
|
sgr0 = "#000000"; // SGR 0 color (#RRGGBB)
|
|
|
|
sgr1 = "#7f0000"; // SGR 1 color (#RRGGBB)
|
|
|
|
sgr2 = "#007f00"; // SGR 2 color (#RRGGBB)
|
|
|
|
sgr3 = "#7f7f00"; // SGR 3 color (#RRGGBB)
|
|
|
|
sgr4 = "#00007f"; // SGR 4 color (#RRGGBB)
|
|
|
|
sgr5 = "#7f007f"; // SGR 5 color (#RRGGBB)
|
|
|
|
sgr6 = "#007f7f"; // SGR 6 color (#RRGGBB)
|
|
|
|
sgr7 = "#cccccc"; // SGR 7 color (#RRGGBB)
|
|
|
|
sgr8 = "#333333"; // SGR 8 color (#RRGGBB)
|
|
|
|
sgr9 = "#ff0000"; // SGR 9 color (#RRGGBB)
|
|
|
|
sgr10 = "#00ff00"; // SGR 10 color (#RRGGBB)
|
|
|
|
sgr11 = "#ffff00"; // SGR 11 color (#RRGGBB)
|
|
|
|
sgr12 = "#0000ff"; // SGR 12 color (#RRGGBB)
|
|
|
|
sgr13 = "#ff00ff"; // SGR 13 color (#RRGGBB)
|
|
|
|
sgr14 = "#00ffff"; // SGR 14 color (#RRGGBB)
|
|
|
|
sgr15 = "#ffffff"; // SGR 15 color (#RRGGBB)
|
|
|
|
coloritems = 1; // Color the selected item (0/1)
|
|
|
|
sgr = 1; // Interpret SGR sequences (0/1)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Alpha */
|
|
|
|
alpha = ( { itemnormfg = 255; // Normal item foreground alpha (0-255)
|
|
|
|
itemnormbg = 200; // Normal item background alpha (0-255)
|
2023-05-13 16:07:29 +02:00
|
|
|
itemnormfg2 = 255; // Normal next item foreground alpha (0-255)
|
2023-05-14 01:32:33 +02:00
|
|
|
itemnormbg2 = 200; // Normal next item background alpha (0-255)
|
2023-04-29 15:30:51 +02:00
|
|
|
itemselfg = 255; // Selected item foreground alpha (0-255)
|
|
|
|
itemselbg = 200; // Selected item background alpha (0-255)
|
2023-05-18 10:23:45 +02:00
|
|
|
itemmarkedfg = 255; // Marked item foreground alpha (0-255)
|
|
|
|
itemmarkedbg = 200; // Marked item background alpha (0-255)
|
2023-04-29 15:30:51 +02:00
|
|
|
itemnormprifg = 255; // Normal priority item foreground alpha (0-255)
|
|
|
|
itemnormpribg = 200; // Normal priority item background alpha (0-255)
|
|
|
|
itemselprifg = 255; // Selected priority item foreground alpha (0-255)
|
|
|
|
itemselpribg = 200; // Selected priority item background alpha (0-255)
|
|
|
|
inputfg = 255; // Input foreground alpha (0-255)
|
|
|
|
inputbg = 200; // Input background alpha (0-255)
|
|
|
|
menu = 200; // Menu alpha (0-255)
|
|
|
|
promptfg = 255; // Prompt foreground alpha (0-255)
|
|
|
|
promptbg = 200; // Prompt background alpha (0-255)
|
|
|
|
larrowfg = 255; // Left arrow foreground alpha (0-255)
|
|
|
|
larrowbg = 200; // Left arrow background alpha (0-255)
|
|
|
|
rarrowfg = 255; // Right arrow foreground alpha (0-255)
|
|
|
|
rarrowbg = 200; // Right arrow background alpha (0-255)
|
|
|
|
hlnormfg = 255; // Normal highlight foreground alpha (0-255)
|
|
|
|
hlnormbg = 200; // Normal highlight background alpha (0-255)
|
|
|
|
hlselfg = 255; // Selected highlight foreground alpha (0-255)
|
|
|
|
hlselbg = 200; // Selected highlight background alpha (0-255)
|
|
|
|
numfg = 255; // Match count foreground alpha (0-255)
|
|
|
|
numbg = 200; // Match count background alpha (0-255)
|
|
|
|
border = 255; // Border alpha (0-255)
|
|
|
|
caretfg = 255; // Caret (cursor) foreground alpha (0-255)
|
|
|
|
caretbg = 200; // Caret (cursor) background alpha (0-255)
|
|
|
|
modefg = 255; // Mode indicator foreground alpha (0-255)
|
|
|
|
modebg = 200; // Mode indicator background alpha (0-255)
|
|
|
|
capsfg = 255; // Caps Lock indicator foreground alpha (0-255)
|
|
|
|
capsbg = 200; // Caps Lock indicator background alpha (0-255)
|
2023-04-17 16:27:48 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Powerline options */
|
|
|
|
powerline = ( { promptstyle = 0; // Prompt powerline style (0: >, 1: \)
|
|
|
|
matchcountstyle = 0; // Match count powerline style (0: <, 1: /)
|
|
|
|
modestyle = 0; // Mode indicator powerline style (0: <, 1: /)
|
|
|
|
capsstyle = 0; // Caps lock indicator powerline style (0: <, 1: /)
|
|
|
|
prompt = 1; // Enable prompt powerline (0/1)
|
|
|
|
matchcount = 1; // Enable match count powerline (0/1)
|
|
|
|
mode = 1; // Enable mode indicator powerline (0/1)
|
|
|
|
caps = 1; // Enable caps lock indicator powerline (0/1)
|
2023-04-07 21:20:43 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Hide options */
|
|
|
|
hide = ( { input = 0; // Hide input (0/1)
|
|
|
|
larrow = 0; // Hide left arrow (0/1)
|
|
|
|
rarrow = 0; // Hide right arrow (0/1)
|
|
|
|
items = 0; // Hide items (0/1)
|
|
|
|
prompt = 0; // Hide prompt (0/1)
|
|
|
|
powerline = 0; // Hide powerline (0/1)
|
|
|
|
caret = 0; // Hide caret (cursor) (0/1)
|
|
|
|
highlight = 0; // Hide highlighting (0/1)
|
|
|
|
matchcount = 0; // Hide match count (0/1)
|
|
|
|
mode = 0; // Hide mode indicator (0/1)
|
|
|
|
caps = 0; // Hide caps lock indicator (0/1)
|
|
|
|
image = 0; // Hide images (0/1)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Match options */
|
|
|
|
match = ( { sort = 1; // Sort items (0/1)
|
|
|
|
casesensitive = 0; // Enable case sensitivity when matching (0/1)
|
|
|
|
fuzzy = 1; // Enable fuzzy finding (0/1)
|
|
|
|
preselected = 0; // Preselect an item, 0 is the first item (number)
|
2023-05-19 02:13:13 +02:00
|
|
|
mark = 1; // Allow marking/selecting multiple items (0/1)
|
2023-05-06 14:59:47 +02:00
|
|
|
accuratewidth = 0; // Enable accurate width, could be noticeably slower in some cases (0/1)
|
2023-04-29 15:30:51 +02:00
|
|
|
delimiters = " "; // Word delimiter, used to delete words (text)
|
2023-05-07 01:41:30 +02:00
|
|
|
listfile = "NULL"; // File to read entries from. If set to NULL standard input is read. This is read every time a key is pressed. (text)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Line options */
|
|
|
|
line = ( { height = 1; // Height of each line (px)
|
|
|
|
lines = 0; // Number of lines (number)
|
|
|
|
columns = 10; // Number of columns (number)
|
|
|
|
indentitems = 1; // Indent items to prompt width (0/1)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* History options */
|
|
|
|
history = ( { max = 64; // Max number of entries (number)
|
|
|
|
duplicate = 0; // Save duplicate entries (0/1)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Centered options */
|
|
|
|
center = ( { width = 1000; // Menu width when centered (px)
|
2023-04-04 17:18:16 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Image options */
|
|
|
|
image = ( { width = 200; // Image width (px)
|
|
|
|
height = 200; // Image height (px)
|
|
|
|
gaps = 0; // Image gaps (px)
|
|
|
|
position = 0; // Image position (0: Top, 1: Bottom, 2: Center, 3: Top center)
|
|
|
|
cache = 1; // Cache images (0/1)
|
2023-05-12 23:23:15 +02:00
|
|
|
maxcache = 512; // Max image size to cache (px)
|
|
|
|
cachedir = "default"; // Cache directory. "default" means spmenu will determine automatically based on $XDG_CACHE_DIR
|
2023-04-29 15:30:51 +02:00
|
|
|
} );
|
2023-04-04 17:18:16 +02:00
|
|
|
|
2023-05-01 17:07:35 +02:00
|
|
|
/* File options */
|
|
|
|
file = ( { xresources = 1; // Load .Xresources on startup (0/1)
|
2023-04-29 15:30:51 +02:00
|
|
|
global = 1; // Read global .Xresources colors, programs like Pywal use this. (*.color0, *.color1, etc.) (0/1)
|
2023-05-22 22:47:37 +02:00
|
|
|
theme = 1; // Load theme (~/.config/spmenu/theme.conf) on runtime
|
|
|
|
binds = 1; // Load binds (~/.config/spmenu/binds.conf) on runtime
|
2023-04-29 15:30:51 +02:00
|
|
|
} );
|
2023-04-04 17:18:16 +02:00
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Input options */
|
|
|
|
input = ( { fast = 1; // Grab keyboard before matching entries (0/1)
|
|
|
|
type = 1; // Allow typing
|
|
|
|
password = 0; // Don't read standard input and replace all characters with the password character (0/1)
|
|
|
|
} );
|
2023-04-04 17:18:16 +02:00
|
|
|
|
2023-05-06 23:29:41 +02:00
|
|
|
/* Output options */
|
|
|
|
output = ( { printindex = 0; // Print index instead of actual text (0/1)
|
2023-05-06 23:39:03 +02:00
|
|
|
incremental = 0; // Print text on every keypress (0/1)
|
2023-05-06 23:29:41 +02:00
|
|
|
} );
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Mode options */
|
|
|
|
mode = ( { default = 0; // Mode to start spmenu in (0: Normal mode, 1: Insert mode)
|
|
|
|
normal_text = "Normal"; // Normal mode text (text)
|
|
|
|
insert_text = "Insert"; // Insert mode text (text)
|
2023-04-04 17:18:16 +02:00
|
|
|
} );
|
2023-04-04 21:39:38 +02:00
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Pango markup options */
|
|
|
|
pango = ( { item = 1; // Interpret Pango markup for items (0/1)
|
|
|
|
highlight = 1; // Intepret Pango markup for highlighting (0/1)
|
|
|
|
prompt = 1; // Interpret Pango markup for the prompt (0/1)
|
|
|
|
input = 1; // Interpret Pango markup for the input (0/1)
|
|
|
|
leftarrow = 0; // Interpret Pango markup for the left arrow (0/1)
|
|
|
|
rightarrow = 0; // Interpret Pango markup for the right arrow (0/1)
|
|
|
|
numbers = 0; // Interpret Pango markup for the match count (0/1)
|
|
|
|
mode = 0; // Interpret Pango markup for the mode indicator (0/1)
|
|
|
|
caps = 0; // Interpret Pango markup for the caps lock indicator (0/1)
|
|
|
|
password = 0; // Interpret Pango markup for password input (0/1)
|
2023-04-04 21:39:38 +02:00
|
|
|
} );
|
2023-04-25 11:39:50 +02:00
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Mouse bindings
|
|
|
|
*
|
|
|
|
* See https://spmenu.speedie.site/index.php/Configurable+keybindings for a list of valid options.
|
|
|
|
*/
|
2023-04-29 22:53:00 +02:00
|
|
|
mouse = ( // Left click on input: Clear the input
|
2023-05-06 14:13:56 +02:00
|
|
|
{ click = "ClickInput";
|
2023-04-25 16:42:15 +02:00
|
|
|
modifier = "None";
|
2023-04-25 17:52:52 +02:00
|
|
|
button = "Left Click";
|
2023-04-25 16:42:15 +02:00
|
|
|
function = "clear";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Left click on prompt: Clear the input
|
2023-05-06 14:13:56 +02:00
|
|
|
{ click = "ClickPrompt";
|
2023-04-25 16:42:15 +02:00
|
|
|
modifier = "None";
|
2023-04-25 17:52:52 +02:00
|
|
|
button = "Left Click";
|
2023-04-25 16:42:15 +02:00
|
|
|
function = "clear";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Left click on the mode indicator: Toggle mode
|
2023-05-06 14:13:56 +02:00
|
|
|
{ click = "ClickMode";
|
2023-04-25 16:42:15 +02:00
|
|
|
modifier = "None";
|
2023-04-25 17:52:52 +02:00
|
|
|
button = "Left Click";
|
2023-04-25 16:42:15 +02:00
|
|
|
function = "switchmode";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Click on the match count: Toggle viewing history buffer
|
2023-05-06 14:13:56 +02:00
|
|
|
{ click = "ClickNumber";
|
2023-04-25 16:42:15 +02:00
|
|
|
modifier = "None";
|
2023-04-25 17:52:52 +02:00
|
|
|
button = "Left Click";
|
2023-04-25 16:42:15 +02:00
|
|
|
function = "viewhist";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Left click on an item: Select it
|
2023-05-06 14:13:56 +02:00
|
|
|
{ click = "ClickSelItem";
|
2023-04-25 16:42:15 +02:00
|
|
|
modifier = "None";
|
2023-04-25 17:52:52 +02:00
|
|
|
button = "Left Click";
|
2023-04-25 16:42:15 +02:00
|
|
|
function = "None";
|
|
|
|
argument = "0";
|
|
|
|
},
|
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
{ ignoreglobalmouse = 1; // Ignore hardcoded mouse binds (0/1)
|
|
|
|
} );
|
2023-04-25 16:42:15 +02:00
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
/* Keys
|
|
|
|
*
|
|
|
|
* See https://spmenu.speedie.site/index.php/Configurable+keybindings for a list of valid options.
|
|
|
|
*/
|
2023-04-29 22:53:00 +02:00
|
|
|
keys = ( // Enter: Select item
|
|
|
|
{ mode = -1;
|
2023-04-25 11:39:50 +02:00
|
|
|
modifier = "None";
|
|
|
|
key = "Enter";
|
|
|
|
function = "selectitem";
|
|
|
|
argument = "+1";
|
2023-04-25 17:52:52 +02:00
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Shift+Enter: Select input
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "Enter";
|
|
|
|
function = "selectitem";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-05-16 18:54:26 +02:00
|
|
|
// Ctrl+Enter: Mark input
|
|
|
|
{ mode = -1;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "Enter";
|
|
|
|
function = "markitem";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Tab: Tab complete
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Tab";
|
|
|
|
function = "complete";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+v: Paste from clipboard
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "v";
|
|
|
|
function = "paste";
|
|
|
|
argument = "2";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Shift+v: Paste from selection
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
|
|
|
modifier = "Ctrl+Shift";
|
|
|
|
key = "v";
|
|
|
|
function = "paste";
|
|
|
|
argument = "1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Backspace: Backspace
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Backspace";
|
|
|
|
function = "backspace";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Backspace: Delete word
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "Backspace";
|
|
|
|
function = "deleteword";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Left: Move caret (cursor) one word to the left
|
2023-05-10 09:19:56 +02:00
|
|
|
{ mode = -1;
|
2023-04-25 17:52:52 +02:00
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "Left";
|
|
|
|
function = "moveword";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Right: Move caret (cursor) one word to the right
|
2023-05-10 09:19:56 +02:00
|
|
|
{ mode = -1;
|
2023-04-25 17:52:52 +02:00
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "Right";
|
|
|
|
function = "moveword";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Left: Move caret (cursor) one character to the left
|
2023-05-10 09:19:56 +02:00
|
|
|
{ mode = -1;
|
2023-04-25 17:52:52 +02:00
|
|
|
modifier = "None";
|
|
|
|
key = "Left";
|
|
|
|
function = "movecursor";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Right: Move caret (cursor) one character to the right
|
2023-05-10 09:19:56 +02:00
|
|
|
{ mode = -1;
|
2023-04-25 17:52:52 +02:00
|
|
|
modifier = "None";
|
|
|
|
key = "Right";
|
|
|
|
function = "movecursor";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Shift+p: Open profile menu
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = -1;
|
2023-04-26 10:01:11 +02:00
|
|
|
modifier = "Ctrl+Shift";
|
2023-04-25 17:52:52 +02:00
|
|
|
key = "p";
|
2023-04-26 10:01:11 +02:00
|
|
|
function = "setprofile";
|
|
|
|
argument = "0";
|
2023-04-25 17:52:52 +02:00
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Escape: Switch mode
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 1;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Esc";
|
|
|
|
function = "switchmode";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// i: Switch mode
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "i";
|
|
|
|
function = "switchmode";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// /: Switch mode
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "/";
|
|
|
|
function = "switchmode";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+=: Increase image size by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "=";
|
|
|
|
function = "setimgsize";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+-: Decrease image size by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "-";
|
|
|
|
function = "setimgsize";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// -: Increase image size by 10
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "=";
|
|
|
|
function = "setimgsize";
|
|
|
|
argument = "+10";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// =: Decrease image size by 10
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
2023-04-29 22:53:00 +02:00
|
|
|
modifier = "None";
|
2023-04-25 17:52:52 +02:00
|
|
|
key = "-";
|
|
|
|
function = "setimgsize";
|
2023-04-29 22:53:00 +02:00
|
|
|
argument = "-10";
|
2023-04-25 17:52:52 +02:00
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Shift+=: Increase image size by 100
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "=";
|
|
|
|
function = "setimgsize";
|
|
|
|
argument = "+100";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Shift+-: Decrease image size by 100
|
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "-";
|
|
|
|
function = "setimgsize";
|
|
|
|
argument = "-100";
|
|
|
|
},
|
|
|
|
// Shift+0: Set image size to the default
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "0";
|
|
|
|
function = "defaultimg";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// r: Rotate image
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "r";
|
|
|
|
function = "rotateimg";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-05-10 09:19:12 +02:00
|
|
|
// o: Toggle image position
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
2023-05-10 09:19:12 +02:00
|
|
|
key = "o";
|
2023-04-25 17:52:52 +02:00
|
|
|
function = "setimgpos";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-05-10 09:19:12 +02:00
|
|
|
// p: Paste from clipboard
|
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "p";
|
|
|
|
function = "paste";
|
|
|
|
argument = "2";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+1: Decrease image gaps by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "1";
|
|
|
|
function = "setimggaps";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+2: Increase image gaps by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "2";
|
|
|
|
function = "setimggaps";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// 1: Decrease image gaps by 10
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "1";
|
|
|
|
function = "setimggaps";
|
|
|
|
argument = "-10";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// 2: Increase image gaps by 10
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "2";
|
|
|
|
function = "setimggaps";
|
|
|
|
argument = "+10";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Shift+1: Decrease image gaps by 100
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "1";
|
|
|
|
function = "setimggaps";
|
|
|
|
argument = "-100";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Shift+2: Increase image gaps by 100
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "2";
|
|
|
|
function = "setimggaps";
|
|
|
|
argument = "+100";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// t: Toggle image
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "t";
|
|
|
|
function = "toggleimg";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-05-14 00:10:24 +02:00
|
|
|
// f: Toggle image full screen mode
|
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "f";
|
|
|
|
function = "togglefullimg";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// h: Flip image horizontally
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "h";
|
|
|
|
function = "flipimg";
|
|
|
|
argument = "1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// v: Flip image vertically
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "v";
|
|
|
|
function = "flipimg";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// k: Move up 1 item
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "k";
|
|
|
|
function = "moveup";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// j: Move down 1 item
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "j";
|
|
|
|
function = "movedown";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// h: Move left 1 item
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "h";
|
|
|
|
function = "moveleft";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// l: Move right 1 item
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "l";
|
|
|
|
function = "moveright";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+u: Move up 5 items
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "u";
|
|
|
|
function = "moveup";
|
|
|
|
argument = "5";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+d: Move down 5 items
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "d";
|
|
|
|
function = "movedown";
|
|
|
|
argument = "5";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+k: Increase lines by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "k";
|
|
|
|
function = "setlines";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+j: Decrease lines by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "j";
|
|
|
|
function = "setlines";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Alt+Shift+k: Increase lines by 5
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl+Alt+Shift";
|
|
|
|
key = "k";
|
|
|
|
function = "setlines";
|
|
|
|
argument = "+5";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Alt+Shift+j: Decrease lines by 5
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl+Alt+Shift";
|
|
|
|
key = "j";
|
|
|
|
function = "setlines";
|
|
|
|
argument = "-5";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+l: Increase columns by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
2023-04-28 17:56:48 +02:00
|
|
|
key = "l";
|
2023-04-25 17:52:52 +02:00
|
|
|
function = "setcolumns";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+h: Decrease columns by 1
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl";
|
|
|
|
key = "h";
|
|
|
|
function = "setcolumns";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Alt+Shift+h: Increase columns by 5
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl+Alt+Shift";
|
|
|
|
key = "h";
|
|
|
|
function = "setcolumns";
|
|
|
|
argument = "+5";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+Alt+Shift+l: Decrease columns by 5
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl+Alt+Shift";
|
|
|
|
key = "l";
|
|
|
|
function = "setcolumns";
|
|
|
|
argument = "-5";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+u: Toggle highlighting
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "u";
|
|
|
|
function = "togglehighlight";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Ctrl+h: Toggle viewing history buffer
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Ctrl+Shift";
|
|
|
|
key = "h";
|
|
|
|
function = "viewhist";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// d: Clear the input
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "d";
|
|
|
|
function = "clear";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-05-10 09:19:12 +02:00
|
|
|
// Shift+d: Clear the input and enter insert mode
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
2023-05-10 09:19:12 +02:00
|
|
|
modifier = "Shift";
|
|
|
|
key = "d";
|
2023-04-25 17:52:52 +02:00
|
|
|
function = "clearins";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Esc: Exit
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Esc";
|
|
|
|
function = "quit";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Home: Move to the start
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Home";
|
|
|
|
function = "movestart";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// End: Move to the end
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "End";
|
|
|
|
function = "moveend";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// g: Move to the start
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "g";
|
|
|
|
function = "movestart";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Shift+g: Move to the end
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Shift";
|
|
|
|
key = "g";
|
|
|
|
function = "moveend";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Next: Move to the next entry (redo)
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Next";
|
|
|
|
function = "movenext";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Prior: Move to the previous entry (undo)
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "None";
|
|
|
|
key = "Prior";
|
|
|
|
function = "moveprev";
|
|
|
|
argument = "0";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Alt+p: Navigate to the previous entry in the history buffer
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Alt";
|
|
|
|
key = "p";
|
|
|
|
function = "navhistory";
|
|
|
|
argument = "-1";
|
|
|
|
},
|
2023-04-29 22:53:00 +02:00
|
|
|
// Alt+n: Navigate to the next entry in the history buffer
|
2023-04-25 17:52:52 +02:00
|
|
|
{ mode = 0;
|
|
|
|
modifier = "Alt";
|
|
|
|
key = "n";
|
|
|
|
function = "navhistory";
|
|
|
|
argument = "+1";
|
|
|
|
},
|
2023-04-25 11:39:50 +02:00
|
|
|
|
2023-04-29 15:30:51 +02:00
|
|
|
{ ignoreglobalkeys = 1; // Ignore hardcoded keybinds (0/1)
|
|
|
|
} ),
|
2023-04-04 17:18:16 +02:00
|
|
|
};
|