Update plasma manager, update zellij layout to re-enable mode switching for panels
This commit is contained in:
parent
acccba01c0
commit
ccf1e416cf
2 changed files with 95 additions and 112 deletions
|
@ -8,58 +8,79 @@
|
|||
pkgs.writeText "default.kdl"
|
||||
''
|
||||
layout {
|
||||
// pane size=1 borderless=true {
|
||||
// plugin location="tab-bar"
|
||||
//}
|
||||
tab {
|
||||
pane
|
||||
}
|
||||
|
||||
pane size=1 borderless=true {
|
||||
plugin location="file:${inputs.zjstatus.packages.${pkgs.system}.default}/bin/zjstatus.wasm" {
|
||||
format_left "{mode} Zellij #[fg=yellow,bold]({session})"
|
||||
format_center "{tabs}"
|
||||
format_right "{command_git_branch} {datetime}"
|
||||
format_space " "
|
||||
|
||||
border_enabled "true"
|
||||
border_char "─"
|
||||
border_format "#[fg=green]{char}"
|
||||
border_position "top"
|
||||
|
||||
hide_frame_for_single_pane "false"
|
||||
|
||||
mode_normal "#[bg=blue] "
|
||||
mode_tmux "#[bg=blue] "
|
||||
|
||||
// formatting for inactive tabs
|
||||
tab_normal "#[fg=green] {index} :: {name} "
|
||||
tab_normal_fullscreen "#[fg=green] {index} :: {name} [] "
|
||||
tab_normal_sync "#[fg=green] {index} :: {name} <> "
|
||||
|
||||
// formatting for the current active tab
|
||||
tab_active "#[fg=white,bold,italic] {name} {floating_indicator}"
|
||||
tab_active_fullscreen "#[fg=white,bold,italic] {name} {fullscreen_indicator}"
|
||||
tab_active_sync "#[fg=white,bold,italic] {name} {sync_indicator}"
|
||||
|
||||
// separator between the tabs
|
||||
tab_separator "#[fg=green,bg=orange] | "
|
||||
|
||||
// indicators
|
||||
tab_sync_indicator "<> "
|
||||
tab_fullscreen_indicator "[] "
|
||||
tab_floating_indicator "⬚ "
|
||||
|
||||
command_git_branch_command "git rev-parse --abbrev-ref HEAD"
|
||||
command_git_branch_format "#[fg=yellow] {stdout} "
|
||||
command_git_branch_interval "10"
|
||||
command_git_branch_rendermode "static"
|
||||
|
||||
datetime "#[fg=#yellow,bold] {format} "
|
||||
datetime_format "%Y-%m-%d %H:%M"
|
||||
datetime_timezone "Europe/Amsterdam"
|
||||
swap_tiled_layout name="vertical" {
|
||||
tab max_panes=5 {
|
||||
pane split_direction="vertical" {
|
||||
pane
|
||||
pane { children; }
|
||||
}
|
||||
}
|
||||
tab max_panes=8 {
|
||||
pane split_direction="vertical" {
|
||||
pane { children; }
|
||||
pane { pane; pane; pane; pane; }
|
||||
}
|
||||
}
|
||||
tab max_panes=12 {
|
||||
pane split_direction="vertical" {
|
||||
pane { children; }
|
||||
pane { pane; pane; pane; pane; }
|
||||
pane { pane; pane; pane; pane; }
|
||||
}
|
||||
}
|
||||
}
|
||||
pane
|
||||
pane size=2 borderless=true {
|
||||
plugin location="status-bar"
|
||||
|
||||
swap_tiled_layout name="horizontal" {
|
||||
tab max_panes=5 {
|
||||
pane
|
||||
pane
|
||||
}
|
||||
tab max_panes=8 {
|
||||
pane {
|
||||
pane split_direction="vertical" { children; }
|
||||
pane split_direction="vertical" { pane; pane; pane; pane; }
|
||||
}
|
||||
}
|
||||
tab max_panes=12 {
|
||||
pane {
|
||||
pane split_direction="vertical" { children; }
|
||||
pane split_direction="vertical" { pane; pane; pane; pane; }
|
||||
pane split_direction="vertical" { pane; pane; pane; pane; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default_tab_template {
|
||||
pane size=1 borderless=true {
|
||||
plugin location="file:${inputs.zjstatus.packages.${pkgs.system}.default}/bin/zjstatus.wasm" {
|
||||
format_left "#[fg=#yellow,bold] {session} {mode} {tabs}"
|
||||
format_right "#[bg=bg,fg=fg] #[bg=bg,fg=fg,bold]{datetime} #[bg=bg,fg=fg]"
|
||||
|
||||
mode_locked "#[fg=magenta,bold] {name} "
|
||||
mode_normal "#[fg=green,bold] {name} "
|
||||
mode_resize "#[fg=orange,bold] {name} "
|
||||
mode_default_to_mode "resize"
|
||||
|
||||
tab_normal "#[bg=bg,fg=fg] #[bg=bg,fg=fg,bold]{name} {sync_indicator}{fullscreen_indicator}{floating_indicator} #[bg=white,fg=cyan]"
|
||||
tab_active "#[bg=bg,fg=fg] #[bg=black,fg=yellow,bold]{name} {sync_indicator}{fullscreen_indicator}{floating_indicator} #[bg=white,fg=cyan]"
|
||||
|
||||
tab_sync_indicator " "
|
||||
tab_fullscreen_indicator "□ "
|
||||
tab_floating_indicator " "
|
||||
|
||||
datetime "#[fg=#yellow,bold] {format} "
|
||||
datetime_format "%Y-%m-%d %H:%M"
|
||||
datetime_timezone "Europe/Amsterdam"
|
||||
}
|
||||
}
|
||||
children
|
||||
pane size=2 borderless=true {
|
||||
plugin location="status-bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue