From 6071fe4f8fb915b3e5bd2a26f52a29940e33bf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 6 May 2024 10:08:51 +0200 Subject: [PATCH] Add i3bar toggle for light mode --- i3/i3status-rust/config.toml.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/i3/i3status-rust/config.toml.j2 b/i3/i3status-rust/config.toml.j2 index 038c2b6..f93f579 100644 --- a/i3/i3status-rust/config.toml.j2 +++ b/i3/i3status-rust/config.toml.j2 @@ -71,6 +71,13 @@ command_on = "$HOME/.i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3s command_off = "$HOME/.i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs" command_state = "[[ $($HOME/.i3/scripts/presentation-mode status) == on ]] && echo active" +[[block]] +block = "toggle" +format = "  $icon " +command_on = "systemctl --user start color-theme-light" +command_off = "systemctl --user stop color-theme-light" +command_state = "[[ $(systemctl --user is-active color-theme-light) == active ]] && echo active" + [[block]] block = "toggle" format = "  $icon "