mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
feat(quick-access-terminal): make --layer configurable
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user