From 55d7bb01bc61de7208322f25c6b22da9965a107a Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 8 Feb 2024 18:08:01 -0600 Subject: fix(i3status): add condition to gpu --- i3status/.config/i3status-rust/config.toml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/i3status/.config/i3status-rust/config.toml b/i3status/.config/i3status-rust/config.toml index 253318a..0e595ee 100644 --- a/i3status/.config/i3status-rust/config.toml +++ b/i3status/.config/i3status-rust/config.toml @@ -45,6 +45,7 @@ block = "cpu" [[block]] block = "amd_gpu" +if_command = "lspci -v | grep 'AMD/ATI' >/dev/null" [[block]] block = "maildir" @@ -53,7 +54,8 @@ interval = 60 [[block]] block = "music" -format = " $icon {$combo.str(max_w:20,rot_interval:0.5) $prev $play $next |}" +format = " $icon {$prev $play $next |}" +format_alt = " $icon {$combo.str(max_w:20,rot_interval:0.5) $prev $play $next |}" [[block]] block = "sound" @@ -62,16 +64,6 @@ if_command = "pactl list >/dev/null || aplay -l >/dev/null " button = "left" cmd = "pavucontrol" -[[block]] -block = "toggle" -format = " $icon " -if_command = "networkctl status wg0" -command_state = "cat /sys/class/net/wg0/carrier" -command_on = "sudo networkctl up wg0" -command_off = "sudo networkctl down wg0" -interval = 20 -merge_with_next = true - [[block]] block = "net" device = "^wg0$" -- cgit v1.2.3-70-g09d2