Skip to content

Send custom shortcuts to guest #1477

Answered by Andrew15-5
Andrew15-5 asked this question in Quickemu
Discussion options

You must be logged in to vote
It can't be that easy.

Wow, I thought it is more complicated that that. I also found out that I have to make the last few arguments a single one:

conf := "nixos.conf"
default:
  quickemu --vm '{{conf}}' --display spice

cmd *args:
  quickemu --vm '{{conf}}' --monitor-cmd '{{args}}'

alias sh := shortcut
shortcut *args:
  quickemu --vm '{{conf}}' --monitor-cmd 'sendkey {{args}}'

tty n="7":
  quickemu --vm '{{conf}}' --monitor-cmd 'sendkey ctrl-alt-f{{n}}'

I also found the example for this exact use case in https://www.qemu.org/docs/master/system/monitor.html.

Now I can easily switch between ttys with a simple j tty 1.

Thank you for your support.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Andrew15-5
Comment options

@lj3954
Comment options

@Andrew15-5
Comment options

Answer selected by Andrew15-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1442 on October 14, 2024 00:04.