pdate icons in scripts

This commit is contained in:
2023-05-04 15:04:51 -07:00
parent 2e64eee765
commit 41c41b7702
3 changed files with 47 additions and 26 deletions

View File

@ -3,10 +3,10 @@
if [[ "$(uname)" = 'Linux' ]]; then
local active_networks="$(nmcli c s --active)"
local output=''
[[ "${active_networks}" = *' wifi '* ]] && output="${output} "
[[ "${active_networks}" = *' ethernet '* ]] && output="${output}"
[[ "${active_networks}" = *' wireguard '* ]] && output="${output} "
(( ${#output} == 0 )) && output=''
[[ "${active_networks}" = *' wifi '* ]] && output="${output}󰖩 "
[[ "${active_networks}" = *' ethernet '* ]] && output="${output}󰈁"
[[ "${active_networks}" = *' wireguard '* ]] && output="${output}󰖂 "
(( ${#output} == 0 )) && output='󰈂'
bluetoothctl show | grep 'Powered: yes' >/dev/null && output="${output} "
printf '%s\n' "${output}"
else