linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit c9a80c4a3578e12987784f455661fe2808a866fe parent 5c2a6eaaef589b43a89c98e898d1f7bfce21da78 Author: Jul <jul@9o.is> Date: Sun, 20 Jul 2025 09:06:52 -0400 enable mouse shortcuts in dvtm Diffstat:
| M | pkg/dvtm/config.h | | | 15 | ++++++++++++++- |
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/pkg/dvtm/config.h b/pkg/dvtm/config.h @@ -135,7 +135,20 @@ static const ColorRule colorrules[] = { { "", A_NORMAL, &colors[DEFAULT] }, /* default */ }; -#define ENABLE_MOUSE false +#ifdef NCURSES_MOUSE_VERSION +# define CONFIG_MOUSE + +static Button buttons[] = { + { BUTTON1_CLICKED, { mouse_focus, { NULL } } }, + { BUTTON1_DOUBLE_CLICKED, { mouse_fullscreen, { "[ ]" } } }, + { BUTTON2_CLICKED, { mouse_zoom, { NULL } } }, + { BUTTON3_CLICKED, { mouse_minimize, { NULL } } }, + { BUTTON4_PRESSED, { scrollback, { "-1" } } }, + { BUTTON5_PRESSED, { scrollback, { "1" } } }, +}; +#endif + +#define ENABLE_MOUSE true static Cmd commands[] = { /* create [cmd]: create a new window, run `cmd` in the shell if specified */