Merge branch 'feat/quick-access-terminal-layer-config' of https://github.com/qo0u0op/kitty

This commit is contained in:
Kovid Goyal 2026-07-09 06:58:46 +05:30
commit 8d6e855480
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View file

@ -37,10 +37,11 @@ func main(cmd *cli.Command, opts *Options, args []string) (rc int, err error) {
if err != nil {
return 1, err
}
argv := []string{kitty_exe, "+kitten", "panel", "--toggle-visibility", "--exclusive-zone=0", "--override-exclusive-zone", "--layer=overlay", "--single-instance", "--move-to-active-monitor"}
argv := []string{kitty_exe, "+kitten", "panel", "--toggle-visibility", "--exclusive-zone=0", "--override-exclusive-zone", "--single-instance", "--move-to-active-monitor"}
argv = append(argv, fmt.Sprintf("--lines=%s", conf.Lines))
argv = append(argv, fmt.Sprintf("--columns=%s", conf.Columns))
argv = append(argv, fmt.Sprintf("--edge=%s", conf.Edge))
argv = append(argv, fmt.Sprintf("--layer=%s", conf.Layer))
if conf.Margin_top != 0 {
argv = append(argv, fmt.Sprintf("--margin-top=%d", conf.Margin_top))
}

View file

@ -40,6 +40,8 @@ opt('columns', '80', long_text=panel_opts['columns'].help)
opt('edge', 'top', choices=panel_opts['edge'].choices, long_text=help_of('edge'))
opt('layer', 'overlay', choices=panel_opts['layer'].choices, long_text=help_of('layer'))
opt('background_opacity', '0.85', option_type='unit_float', long_text='''
The background opacity of the window. This works the same as the kitty
option of the same name, it is present here as it has a different