mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Improve handling of output names
Now can use panel --output-name list to list available outputs. Also, --output-name works on macOS
This commit is contained in:
@@ -66,9 +66,9 @@ func main(cmd *cli.Command, opts *Options, args []string) (rc int, err error) {
|
||||
argv = append(argv, fmt.Sprintf("--override=background_opacity=%f", conf.Background_opacity))
|
||||
if runtime.GOOS != "darwin" {
|
||||
argv = append(argv, fmt.Sprintf("--app-id=%s", conf.App_id))
|
||||
if conf.Output_name != "" {
|
||||
argv = append(argv, fmt.Sprintf("--output-name=%s", conf.Output_name))
|
||||
}
|
||||
}
|
||||
if conf.Output_name != "" {
|
||||
argv = append(argv, fmt.Sprintf("--output-name=%s", conf.Output_name))
|
||||
}
|
||||
argv = append(argv, fmt.Sprintf("--focus-policy=%s", conf.Focus_policy))
|
||||
if conf.Start_as_hidden {
|
||||
|
||||
@@ -71,9 +71,10 @@ opt('app_id', f'{appname}-quick-access',
|
||||
|
||||
|
||||
opt('output_name', '', long_text='''
|
||||
On Wayland or X11, the panel can only be displayed on a single monitor (output) at a time. This allows
|
||||
The panel can only be displayed on a single monitor (output) at a time. This allows
|
||||
you to specify which output is used, by name. If not specified the compositor will choose an
|
||||
output automatically, typically the last output the user interacted with or the primary monitor.
|
||||
You can get a list of available outputs by running: :code:`kitten panel --output-name list`.
|
||||
''')
|
||||
|
||||
opt('start_as_hidden', 'no', option_type='to_bool',
|
||||
|
||||
Reference in New Issue
Block a user