[Arch] fix network, delete bar_scripts
[dotfiles_afify.git] / .scripts / rfkill_status
blob9131825bd824f1fd23f073123ac9695d66b1be93
1 #!/usr/bin/env bash
3 wifi_block_logo=""
4 bluetooth_block_logo=""
6 wifi_soft=$(rfkill -rn | awk '/wlan/ {print $4}')
7 bluetooth_soft=$(rfkill -rn | awk '/bluetooth/ {print $4}')
9 if [[ "$wifi_soft" == "blocked" ]]; then
10 result_wifi=$wifi_block_logo
13 if [[ "$bluetooth_soft" == "blocked" ]]; then
14 result_bluetooth=$bluetooth_block_logo
17 echo $result_wifi $result_bluetooth