feat(quick-access-terminal): make --layer configurable

This commit is contained in:
qo0u0op
2026-07-09 02:18:03 +08:00
parent efc31d9de8
commit ead0836c5d
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