mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
First attempt at integration with nmouse and keyboard bindings
This commit is contained in:
parent
96d5d80be2
commit
952d04b78d
6 changed files with 294 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue