From 0b5d7dd6b67bb6a0e347857d2e8064cb8bf1a19c Mon Sep 17 00:00:00 2001 From: inkch Date: Tue, 14 Jan 2025 14:13:57 +0900 Subject: [PATCH] polybar: add new module ollama and its script --- dot_config/polybar/config.ini.tmpl | 11 +++++++++-- dot_config/polybar/scripts/executable_ollama.sh | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 dot_config/polybar/scripts/executable_ollama.sh diff --git a/dot_config/polybar/config.ini.tmpl b/dot_config/polybar/config.ini.tmpl index 18b7fd0..f4d7353 100644 --- a/dot_config/polybar/config.ini.tmpl +++ b/dot_config/polybar/config.ini.tmpl @@ -61,7 +61,7 @@ font-5 = "Symbols Nerd Font:pixelsize=12;2" {{- if eq .chezmoi.hostname "arch" }} modules-left = i3 clicker xwindow modules-center = date -modules-right = pueue filesystem temp cpu memory eth-down eth-up ipv6 caffeine cam tray +modules-right = pueue filesystem temp cpu memory eth-down eth-up ipv6 ollama caffeine cam tray {{- else if eq .chezmoi.hostname "buzz" }} modules-left = i3 xwindow modules-center = date @@ -141,7 +141,14 @@ format-background = ${colors.alert} label-padding-left = 2 label-padding-right = 2 exec = /home/inkch/.config/polybar/scripts/clicker-stat.sh -{{ end }} + +[module/ollama] +type = custom/script +format =