From 11e905131109ffc472790ee150d592471e8ec77e Mon Sep 17 00:00:00 2001 From: speedie Date: Mon, 3 Jul 2023 22:10:51 +0200 Subject: [PATCH] Initial commit --- README.md | 3 +++ binds/simple-keybinds.conf | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 README.md create mode 100644 binds/simple-keybinds.conf diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5eb56b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# spmenu-config + +Configuration files for spmenu diff --git a/binds/simple-keybinds.conf b/binds/simple-keybinds.conf new file mode 100644 index 0000000..a73706d --- /dev/null +++ b/binds/simple-keybinds.conf @@ -0,0 +1,31 @@ +/* Simple binds.conf + * + * This binds.conf simplifies keybinds for spmenu. It removes the use of modes. + * Rename to binds.conf and copy to ~/.config/spmenu to use. + */ +bind = { + keys = ( + /* Mode Modifier Key Function Argument */ + { mode = -1; modifier = "None"; key = "Enter"; function = "selectitem"; argument = "+1"; }, // Enter: Select item + { mode = -1; modifier = "Shift"; key = "Enter"; function = "selectitem"; argument = "0"; }, // Shift+Enter: Select input + { mode = -1; modifier = "Ctrl"; key = "Enter"; function = "markitem"; argument = "0"; }, // Ctrl+Enter: Mark input + { mode = -1; modifier = "None"; key = "Tab"; function = "complete"; argument = "0"; }, // Tab: Tab complete + { mode = -1; modifier = "Ctrl"; key = "v"; function = "paste"; argument = "2"; }, // Ctrl+v: Paste from clipboard + { mode = -1; modifier = "None"; key = "Backspace"; function = "backspace"; argument = "0"; }, // Backspace: Backspace + { mode = -1; modifier = "Ctrl"; key = "Backspace"; function = "deleteword"; argument = "0"; }, // Ctrl+Backspace: Delete word + { mode = -1; modifier = "Ctrl+Shift"; key = "p"; function = "setprofile"; argument = "0"; }, // Ctrl+Shift+p: Open profile menu + { mode = -1; modifier = "Ctrl"; key = "="; function = "setimgsize"; argument = "+10"; }, // Ctrl+=: Increase image size by 10 + { mode = -1; modifier = "Ctrl"; key = "-"; function = "setimgsize"; argument = "-10"; }, // Ctrl+-: Decrease image size by 10 + { mode = -1; modifier = "None"; key = "Up"; function = "moveup"; argument = "0"; }, // k: Move up 1 item + { mode = -1; modifier = "None"; key = "Down"; function = "movedown"; argument = "0"; }, // j: Move down 1 item + { mode = -1; modifier = "None"; key = "Left"; function = "moveleft"; argument = "0"; }, // h: Move left 1 item + { mode = -1; modifier = "None"; key = "Right"; function = "moveright"; argument = "0"; }, // l: Move right 1 item + { mode = -1; modifier = "Ctrl"; key = "u"; function = "moveup"; argument = "5"; }, // Ctrl+u: Move up 5 items + { mode = -1; modifier = "Ctrl"; key = "d"; function = "movedown"; argument = "5"; }, // Ctrl+d: Move down 5 items + { mode = -1; modifier = "Ctrl"; key = "h"; function = "viewhist"; argument = "0"; }, // Ctrl+h: Toggle viewing history buffer + { mode = -1; modifier = "None"; key = "Esc"; function = "quit"; argument = "0"; }, // Esc: Exit + { mode = -1; modifier = "Ctrl"; key = "p"; function = "navhistory"; argument = "-1"; }, // Ctrl+p: Navigate to the previous entry in the history buffer + { mode = -1; modifier = "Ctrl"; key = "n"; function = "navhistory"; argument = "+1"; }, // Ctrl+n: Navigate to the next entry in the history buffer + + { ignoreglobalkeys = 1; forceinsertmode = 1; } ), // Ignore hardcoded keybinds (0/1) +};