You can skip the job id number: if you ommit it it will take the last suspended job from the current environment. So cltr+Z and
bg is shorter.
If you add this to your
alt+w should put
bg on your screen and execute it so it ends up into background.
This is SMPlayer v. 0.6.9 (SVN r3447) running on Linux
+ Stopped smplayer
rinzwind@discworld:~$ bind '"\ek"':"\"bg\C-m\""
+ smplayer &
I have not been able to add a cltr+Z into the command though. Probably because of the signal being ignored:
Ctrl+Z The suspend signal, sends a SIGTSTP to a running program, thus stopping it and returning control to the shell.
18.104.22.168. Signals to your Bash shell
In the absence of any traps, an interactive Bash shell ignores SIGTERM and SIGQUIT. SIGINT is caught and handled, and if job control is active, SIGTTIN, SIGTTOU and SIGTSTP are also ignored. Commands that are run as the result of a command substitution also ignore these signals, when keyboard generated.
SIGHUP by default exits a shell. An interactive shell will send a SIGHUP to all jobs, running or stopped; see the documentation on the disown built-in if you want to disable this default behavior for a particular process. Use the huponexit option for killing all jobs upon receiving a SIGHUP signal, using the shopt built-in.