From fc8adc002f9866b6983259375d739b1676789926 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 9 Apr 2025 10:19:56 +0200 Subject: [PATCH] change btop to template and fix shutdown command --- dot_config/btop/{btop.conf => btop.conf.tmpl} | 7 +++++++ dot_config/waybar/config.jsonc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) rename dot_config/btop/{btop.conf => btop.conf.tmpl} (97%) diff --git a/dot_config/btop/btop.conf b/dot_config/btop/btop.conf.tmpl similarity index 97% rename from dot_config/btop/btop.conf rename to dot_config/btop/btop.conf.tmpl index 86846c1..6f2faab 100644 --- a/dot_config/btop/btop.conf +++ b/dot_config/btop/btop.conf.tmpl @@ -2,7 +2,14 @@ #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" + +{{ if eq .chezmoi.os "darwin" -}} +# macOS contents +color_theme = "/opt/homebrew/Cellar/btop/1.2.13/share/btop/themes/flat-remix.theme" +{{ else if eq .chezmoi.os "linux" -}} +# Linux contents color_theme = "/usr/share/btop/themes/flat-remix.theme" +{{ end -}} #* If the theme set background should be shown, set to False if you want terminal background transparency. theme_background = True diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 1e8ca62..15b158d 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -202,7 +202,7 @@ "menu": "on-click", "menu-file": "$HOME/.config/waybar/modules/power_menu.xml", // Menu file in resources folder "menu-actions": { - "shutdown": "shutdown", + "shutdown": "systemctl poweroff", "reboot": "reboot", "suspend": "systemctl suspend", "hibernate": "systemctl hibernate"