def wm_msg(self, module_name, command):
wm_msg = self.config["<STR_LIT>"]["<STR_LIT>"]<EOL>pipe = Popen([wm_msg, command], stdout=PIPE)<EOL>self.py3_wrapper.log(<EOL>'<STR_LIT>'.format(<EOL>wm_msg, module_name, command, pipe.stdout.read()<EOL>)<EOL>)<EOL>
Execute the message with i3-msg or swaymsg and log its output.