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

@ -1,7 +1,5 @@
#!/bin/sh
export LAN=$(nmcli -t device | awk -F: '($2 == "ethernet") {print $1; exit}')
export WLAN=$(nmcli -t device | awk -F: '($2 == "wifi") {print $1; exit}')
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
export HEIGHT=$((20 * DPI / 96))