Skip to content

Commit

Permalink
Change "resize to fit" shortcut to MOD+w
Browse files Browse the repository at this point in the history
For convenience, MOD+x will be used for injecting the CUT keycode.
  • Loading branch information
rom1v committed Aug 1, 2020
1 parent bccd12b commit 8f64a59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ _[Super] is typically the "Windows" or "Cmd" key._
| Rotate display left | `MOD`+`` _(left)_
| Rotate display right | `MOD`+`` _(right)_
| Resize window to 1:1 (pixel-perfect) | `MOD`+`g`
| Resize window to remove black borders | `MOD`+`x` \| _Double-click¹_
| Resize window to remove black borders | `MOD`+`w` \| _Double-click¹_
| Click on `HOME` | `MOD`+`h` \| _Middle-click_
| Click on `BACK` | `MOD`+`b` \| _Right-click²_
| Click on `APP_SWITCH` | `MOD`+`s`
Expand Down
2 changes: 1 addition & 1 deletion app/scrcpy.1
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Rotate display right
Resize window to 1:1 (pixel\-perfect)

.TP
.B MOD+x, Double\-click on black borders
.B MOD+w, Double\-click on black borders
Resize window to remove black borders

.TP
Expand Down
2 changes: 1 addition & 1 deletion app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ scrcpy_print_usage(const char *arg0) {
" MOD+g\n"
" Resize window to 1:1 (pixel-perfect)\n"
"\n"
" MOD+x\n"
" MOD+w\n"
" Double-click on black borders\n"
" Resize window to remove black borders\n"
"\n"
Expand Down
2 changes: 1 addition & 1 deletion app/src/input_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ input_manager_process_key(struct input_manager *im,
screen_switch_fullscreen(im->screen);
}
return;
case SDLK_x:
case SDLK_w:
if (!shift && !repeat && down) {
screen_resize_to_fit(im->screen);
}
Expand Down

0 comments on commit 8f64a59

Please sign in to comment.