diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-26 12:12:03 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-26 12:12:03 +0100 |
| commit | 8adc10337588cd164b221c3d19ad3bfb7e57cf3b (patch) | |
| tree | 160efe28f0f3c85dcef4c84d8398c8b724c3f065 /examples | |
| parent | feat: implement cache for dynamic command rendering (diff) | |
| download | sl0pstatus-8adc10337588cd164b221c3d19ad3bfb7e57cf3b.tar.gz sl0pstatus-8adc10337588cd164b221c3d19ad3bfb7e57cf3b.tar.xz sl0pstatus-8adc10337588cd164b221c3d19ad3bfb7e57cf3b.zip | |
chore: add conky config to examples
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/conky.conf | 7 | ||||
| -rw-r--r-- | examples/conky.kdl | 35 | ||||
| -rw-r--r-- | examples/conky.png | bin | 0 -> 20826 bytes |
3 files changed, 42 insertions, 0 deletions
diff --git a/examples/conky.conf b/examples/conky.conf new file mode 100644 index 0000000..09eea35 --- /dev/null +++ b/examples/conky.conf @@ -0,0 +1,7 @@ +conky.config = { + units_spacer = '', + short_units = true, + out_to_console = true, + total_run_times = 1, +}; +conky.text = [[[0m[38;2;24;24;37m[48;2;122;168;159m${uptime_short}[38;2;122;168;159m[48;2;152;187;108m[38;2;0;0;0m[48;2;152;187;108m${fs_used_perc}% ${fs_free}[38;2;152;187;108m[48;2;126;156;216m[38;2;0;0;0m[48;2;126;156;216m${loadavg 1}[38;2;126;156;216m[48;2;156;134;191m[38;2;0;0;0m[48;2;156;134;191m${memperc}% ${memmax} ${battery_percent}%]] diff --git a/examples/conky.kdl b/examples/conky.kdl new file mode 100644 index 0000000..25f0f8d --- /dev/null +++ b/examples/conky.kdl @@ -0,0 +1,35 @@ +layout { + pane split_direction="vertical" { + pane + } + + pane size=1 borderless=true { + plugin location="file:target/wasm32-wasi/debug/zjstatus.wasm" { + format_left "{mode}#[fg=black,bg=blue,bold]{session} #[fg=blue,bg=#181825]{tabs}" + format_right "{command_conky}#[fg=#9c86bf,bg=#DCD7BA]{datetime}" + format_space "#[bg=#181825]" + + hide_frame_for_single_pane "true" + + mode_normal "#[bg=blue]" + mode_locked "#[bg=red]" + + tab_normal "#[fg=#181825,bg=#4C4C59] #[fg=#000000,bg=#4C4C59]{index} {name} #[fg=#4C4C59,bg=#181825]" + tab_normal_fullscreen "#[fg=#6C7086,bg=#181825] {index} {name} [] " + tab_normal_sync "#[fg=#6C7086,bg=#181825] {index} {name} <> " + tab_active "#[fg=#181825,bg=#ffffff,bold,italic]{index} {name} #[fg=#ffffff,bg=#181825]" + tab_active_fullscreen "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} [] " + tab_active_sync "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} <> " + + + // TODO: set this path correctly to the absolute path to the conky.conf + command_conky_command "conky -i1 -c path/to/conky.conf" + command_conky_format "{stdout}" + command_conky_interval "1" + + datetime "#[fg=#000000,bg=#DCD7BA,nobold]{format}" + datetime_format "%d/%m %H:%M" + datetime_timezone "Asia/Taipei" + } + } +} diff --git a/examples/conky.png b/examples/conky.png Binary files differnew file mode 100644 index 0000000..ca6093e --- /dev/null +++ b/examples/conky.png |
