i3-companion: replace network module by custom IPC for Network Manager

This commit is contained in:
Vincent Bernat 2021-07-12 07:32:39 +02:00
parent b3c386b778
commit 7df5011824
3 changed files with 176 additions and 33 deletions

View file

@ -31,11 +31,11 @@ modules-center = date
[bar/alone]
inherit = bar/common
modules-right = cpu memory brightness battery ethernet wlan disk pulseaudio
modules-right = cpu memory brightness battery network disk pulseaudio
[bar/primary]
inherit = bar/common
modules-right = cpu memory brightness battery ethernet wlan disk pulseaudio
modules-right = cpu memory brightness battery network disk pulseaudio
[bar/secondary]
inherit = bar/common
@ -98,16 +98,10 @@ type = internal/memory
interval = 5
label =  %percentage_used: 2%%
[module/wlan]
type = internal/network
interface = ${env:WLAN:}
interval = 5
format-connected = <ramp-signal> <label-connected>
label-connected = %essid%
format-disconnected = 
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
[module/network]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/network.txt
initial = 1
[module/ethernet]
type = internal/network