From f7cd08b8078b9b9b96b0a456529cef075ee483a4 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Sat, 19 Dec 2020 02:08:41 +0100 Subject: [PATCH] bar: add music and networkmanager --- conf.d/i3status_annoyance.conf | 11 +++++++++++ conf.d/i3status_silence.toml | 17 ++++++++++++++--- config | 7 ++++++- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/conf.d/i3status_annoyance.conf b/conf.d/i3status_annoyance.conf index 9c635f0..e4d951d 100644 --- a/conf.d/i3status_annoyance.conf +++ b/conf.d/i3status_annoyance.conf @@ -1,6 +1,11 @@ theme = "slick" icons = "awesome5" +[[block]] +block = "music" +player = "Plexamp" +buttons = ["play", "next"] + [[block]] block = "cpu" interval = 1 @@ -32,6 +37,12 @@ critical_swap = 95 # critical_mem = 95 # critical_swap = 95 +[[block]] +block = "networkmanager" +on_click = "termite -t nmtui -e nmtui" +interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"] +interface_name_include = [] + [[block]] block = "time" format = "%Y/%m/%d %R" diff --git a/conf.d/i3status_silence.toml b/conf.d/i3status_silence.toml index 2e1fb16..c794f7c 100644 --- a/conf.d/i3status_silence.toml +++ b/conf.d/i3status_silence.toml @@ -1,6 +1,11 @@ theme = "slick" icons = "awesome5" +[[block]] +block = "music" +player = "Plexamp" +buttons = ["play", "next"] + [[block]] block = "cpu" interval = 1 @@ -33,9 +38,10 @@ critical_swap = 95 # critical_swap = 95 [[block]] -block = "battery" -interval = 10 -format = "{percentage}% {time}" +block = "networkmanager" +on_click = "termite -t nmtui -e nmtui" +interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"] +interface_name_include = [] [[block]] block = "time" @@ -43,3 +49,8 @@ format = "%Y/%m/%d %R" timezone = "Europe/Berlin" interval = 60 locale = "de_DE" + +[[block]] +block = "battery" +interval = 10 +format = "{percentage}% {time}" diff --git a/config b/config index 5981a52..08c2717 100644 --- a/config +++ b/config @@ -202,6 +202,11 @@ mode "resize" { } bindsym $mod+r mode "resize" +# +# Window Rules: +# +for_window [title="nmtui"] floating enable + # # Status Bar: # @@ -209,7 +214,7 @@ bindsym $mod+r mode "resize" bar { position top status_command i3status-rs $HOME/.config/sway/conf.d/i3status_$(hostname).toml - font "Cascadia Code PL Regular 11" + font "Cascadia Code PL Regular 10" colors { separator #666666 background #222222