From a504e27e19d0260a3c728281167653e4695f655e Mon Sep 17 00:00:00 2001 From: RhiobeT Date: Mon, 11 Jul 2022 17:17:34 +0200 Subject: [PATCH] Update status bar configuration --- .config/sway/status.toml | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/.config/sway/status.toml b/.config/sway/status.toml index 1598133..4900a32 100644 --- a/.config/sway/status.toml +++ b/.config/sway/status.toml @@ -19,9 +19,7 @@ separator = "\ue0b2" [[block]] block = "music" player = "spotify" -buttons = ["prev", "play", "next"] -on_collapsed_click = "spotify" -max_width = 0 +format = "$prev $play $next|" [[block]] block = "sound" @@ -29,19 +27,25 @@ driver = "auto" show_volume_when_muted = true headphones_indicator = true step_width = 3 -on_click = "pavucontrol" +[[block.click]] +button = "left" +cmd = "pavucontrol" [[block]] block = "memory" display_type = "memory" -format_mem = "{mem_used;M}" +format_mem = "$mem_used.eng(3,B,M)" clickable = false -on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop" +[[block.click]] +button = "left" +cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop" [[block]] block = "cpu" interval = 1 -on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop" +[[block.click]] +button = "left" +cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop" #[[block]] #block = "sound" @@ -53,19 +57,22 @@ interval = 10 [[block]] block = "pacman" interval = 600 -format = "{both} updates available" -format_singular = "{both} update available" +format = "$both updates available" +format_singular = "$both update available" format_up_to_date = "up to date" hide_when_uptodate = true critical_updates_regex = "(^(linux-|sway|wl)|pipewire)" aur_command = "yay -Qua" -on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf zsh -i -c update" +[[block.click]] +button = "left" +cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf zsh -i -c update" [[block]] -block = "networkmanager" -on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf nmtui" -device_format = "{icon}{ap}" -interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"] +block = "net" +format = "$device{| $ssid}" +[[block.click]] +button = "left" +cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf nmtui" [[block]] block = "time"