Add ethernet to dwmblocks-network
This commit is contained in:
parent
81dcef14c4
commit
3eed51580e
@ -4,6 +4,7 @@ if [[ "$(uname)" = 'Linux' ]]; then
|
|||||||
local active_networks="$(nmcli c s --active)"
|
local active_networks="$(nmcli c s --active)"
|
||||||
local output=''
|
local output=''
|
||||||
[[ "${active_networks}" = *' wifi '* ]] && output="${output}直 "
|
[[ "${active_networks}" = *' wifi '* ]] && output="${output}直 "
|
||||||
|
[[ "${active_networks}" = *' ethernet '* ]] && output="${output}"
|
||||||
[[ "${active_networks}" = *' wireguard '* ]] && output="${output}嬨 "
|
[[ "${active_networks}" = *' wireguard '* ]] && output="${output}嬨 "
|
||||||
(( ${#output} == 0 )) && output=''
|
(( ${#output} == 0 )) && output=''
|
||||||
bluetoothctl show | grep 'Powered: yes' >/dev/null && output="${output} "
|
bluetoothctl show | grep 'Powered: yes' >/dev/null && output="${output} "
|
||||||
|
Loading…
Reference in New Issue
Block a user