Fix setting background image and logo via remote control key mapping not working
This commit is contained in:
parent
22f6728fed
commit
004aaf3291
2 changed files with 4 additions and 0 deletions
|
|
@ -80,11 +80,13 @@ def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: Arg
|
|||
if len(args) != 1:
|
||||
self.fatal('Must specify path to exactly one PNG image')
|
||||
path = os.path.expanduser(args[0])
|
||||
import secrets
|
||||
ret = {
|
||||
'match': opts.match,
|
||||
'configured': opts.configured,
|
||||
'layout': opts.layout,
|
||||
'all': opts.all,
|
||||
'stream_id': secrets.token_urlsafe(),
|
||||
}
|
||||
if path.lower() == 'none':
|
||||
ret['data'] = '-'
|
||||
|
|
|
|||
|
|
@ -75,11 +75,13 @@ def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: Arg
|
|||
if len(args) != 1:
|
||||
self.fatal('Must specify path to exactly one PNG image')
|
||||
path = os.path.expanduser(args[0])
|
||||
import secrets
|
||||
ret = {
|
||||
'match': opts.match,
|
||||
'self': opts.self,
|
||||
'alpha': opts.alpha,
|
||||
'position': opts.position,
|
||||
'stream_id': secrets.token_urlsafe(),
|
||||
}
|
||||
if path.lower() == 'none':
|
||||
ret['data'] = '-'
|
||||
|
|
|
|||
Loading…
Reference in a new issue