feat: added zellij plugin 'zjstatus'
This commit is contained in:
		
							parent
							
								
									96fda609b7
								
							
						
					
					
						commit
						4e4f46a183
					
				
					 4 changed files with 164 additions and 5 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| { lib, config, ... }: | ||||
| { lib, config, pkgs, ... }: | ||||
| let | ||||
|   inherit (config) colorscheme; | ||||
|   inherit (colorscheme) colors; | ||||
|  | @ -30,6 +30,43 @@ in | |||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|     xdg.configFile."zellij/layouts/zjstatus.kld".text = /* kdl */ '' | ||||
|       layout { | ||||
|           pane split_direction="vertical" { | ||||
|               pane | ||||
|           } | ||||
| 
 | ||||
|           pane size=1 borderless=true { | ||||
|               plugin location="file:${pkgs.zjstatus}/bin/zjstatus.wasm" { | ||||
|                   format_left  "{mode} #[fg=#89B4FA,bold]{session} {tabs}" | ||||
|                   format_right "{command_git_branch} {datetime}" | ||||
|                   format_space "" | ||||
| 
 | ||||
|                   border_enabled  "false" | ||||
|                   border_char     "─" | ||||
|                   border_format   "#[fg=#6C7086]{char}" | ||||
|                   border_position "top" | ||||
| 
 | ||||
|                   hide_frame_for_single_pane "true" | ||||
| 
 | ||||
|                   mode_normal  "#[bg=blue] " | ||||
|                   mode_tmux    "#[bg=#ffc387] " | ||||
| 
 | ||||
|                   tab_normal   "#[fg=#6C7086] {name} " | ||||
|                   tab_active   "#[fg=#9399B2,bold,italic] {name} " | ||||
| 
 | ||||
|                   command_git_branch_command     "git rev-parse --abbrev-ref HEAD" | ||||
|                   command_git_branch_format      "#[fg=blue] {stdout} " | ||||
|                   command_git_branch_interval    "10" | ||||
|                   command_git_branch_rendermode  "static" | ||||
| 
 | ||||
|                   datetime        "#[fg=#6C7086,bold] {format} " | ||||
|                   datetime_format "%A, %d %b %Y %H:%M" | ||||
|                   datetime_timezone "Pacific/Auckland" | ||||
|               } | ||||
|           } | ||||
|       } | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue