diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-08 18:08:01 -0600 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-08 18:12:43 -0600 |
commit | 55d7bb01bc61de7208322f25c6b22da9965a107a (patch) | |
tree | d39873f28773adf159739b6e6aae51f121b7e4bf | |
parent | a0d78c137a6f9a41704c4a5a1f6206a29cd84038 (diff) |
fix(i3status): add condition to gpu
-rw-r--r-- | i3status/.config/i3status-rust/config.toml | 14 |
1 files 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" @@ -63,16 +65,6 @@ 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$" format = " $icon " |