First attempt at integration with nmouse and keyboard bindings

This commit is contained in:
Simon Long 2024-05-01 13:39:40 +01:00
parent 4b6efb7307
commit dfd9aa4aba
6 changed files with 294 additions and 1 deletions

View file

@ -134,6 +134,9 @@ static struct key_combos {
.name = "command",
.value = "brightnessctl set 10%-",
},
}, {
.binding = "C-A-m",
.action = "ToggleMagnify",
}, {
.binding = NULL,
},
@ -441,6 +444,24 @@ static struct mouse_combos {
.button = "Middle",
.event = "Press",
.action = "Raise",
}, {
.context = "All",
.button = "W-Up",
.event = "Scroll",
.action = "SetMagnification",
.attributes[0] = {
.name = "scale",
.value = "up",
},
}, {
.context = "All",
.button = "W-Down",
.event = "Scroll",
.action = "SetMagnification",
.attributes[0] = {
.name = "scale",
.value = "down",
},
}, {
.context = NULL,
},

View file

@ -60,6 +60,9 @@ struct rcxml {
bool focus_follow_mouse_requires_movement;
bool raise_on_focus;
bool magnify;
int magnification;
/* theme */
char *theme_name;
int corner_radius;