aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 412ce46..67712fb 100644
--- a/config.def.h
+++ b/config.def.h
@@ -78,6 +78,10 @@ static void _kbd_scroll(Cinnamon* cinnamon, void* arg) {
keyval = GDK_KEY_Up;
} else if (strcmp((const char*)arg, "down") == 0) {
keyval = GDK_KEY_Down;
+ } else if (strcmp((const char*)arg, "top") == 0) {
+ keyval = GDK_KEY_Home;
+ } else if (strcmp((const char*)arg, "bottom") == 0) {
+ keyval = GDK_KEY_End;
} else {
return;
}
@@ -199,6 +203,8 @@ static const Keybind keybinds[] = {
{ "k", &_kbd_scroll, "up" },
{ "h", &_kbd_scroll, "left" },
{ "l", &_kbd_scroll, "right" },
+ { "g", &_kbd_scroll, "top" },
+ { "<S-g>", &_kbd_scroll, "bottom" },
{ "r", &_kbd_reload, NULL },
{ "f", &_kbd_follow, NULL },
{ "<S-j>", &_kbd_next_tab, NULL },