aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-12-26 12:12:03 +0100
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-12-26 12:12:03 +0100
commit8adc10337588cd164b221c3d19ad3bfb7e57cf3b (patch)
tree160efe28f0f3c85dcef4c84d8398c8b724c3f065 /examples
parentfeat: implement cache for dynamic command rendering (diff)
downloadsl0pstatus-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.conf7
-rw-r--r--examples/conky.kdl35
-rw-r--r--examples/conky.pngbin0 -> 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 = [[${uptime_short}${fs_used_perc}% ${fs_free}${loadavg 1}${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
new file mode 100644
index 0000000..ca6093e
--- /dev/null
+++ b/examples/conky.png
Binary files differ