Add option to change terminal alpha through key-bindings

This commit is contained in:
Utkarsh Verma 2022-06-02 08:12:31 +05:30
parent 377997be9d
commit 4e2347da12
No known key found for this signature in database
GPG key ID: 817656CF818EFCCC
7 changed files with 177 additions and 123 deletions

12
input.c
View file

@ -178,6 +178,18 @@ execute_binding(struct seat *seat, struct terminal *term,
term_font_size_reset(term);
return true;
case BIND_ACTION_ALPHA_UP:
term_alpha_increase(term);
return true;
case BIND_ACTION_ALPHA_DOWN:
term_alpha_decrease(term);
return true;
case BIND_ACTION_ALPHA_RESET:
term_alpha_reset(term);
return true;
case BIND_ACTION_SPAWN_TERMINAL:
term_spawn_new(term);
return true;